From fd344eb273aad3bcfecb701ba5e7e6c013319579 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 25 Aug 2017 17:28:43 +0200 Subject: [PATCH] netperf: use disjoint mac addresses for platforms --- repos/ports/run/netperf.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/repos/ports/run/netperf.inc b/repos/ports/run/netperf.inc index afbfb45ce..1cbadb453 100644 --- a/repos/ports/run/netperf.inc +++ b/repos/ports/run/netperf.inc @@ -34,6 +34,14 @@ if {!$use_wifi_driver} { set wifi_psk "" } +set bridge_mac "02:02:02:02:02:00" + +# autopilot: configure disjoint mac-address ranges for x86_32, x86_64, and others +if {[get_cmd_switch --autopilot]} { + if {[have_spec x86_32]} { set bridge_mac "02:02:02:02:32:00" } + if {[have_spec x86_64]} { set bridge_mac "02:02:02:02:64:00" } +} + # # Build # @@ -134,7 +142,7 @@ append_if $use_nic_bridge config { - } + } append_if [expr $use_nic_bridge && [have_spec linux]] config " " append_if $use_nic_bridge config {