netperf: use disjoint mac addresses for platforms

This commit is contained in:
Christian Helmuth 2017-08-25 17:28:43 +02:00
parent 3bc93d1242
commit fd344eb273
1 changed files with 9 additions and 1 deletions

View File

@ -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 {
<start name="nic_bridge">
<resource name="RAM" quantum="5M"/>
<provides><service name="Nic"/></provides>
<config>}
<config mac="} $bridge_mac {">}
append_if [expr $use_nic_bridge && [have_spec linux]] config "
<policy label_prefix=\"netserver_genode\" ip_addr=\"$lx_ip_addr\"/>"
append_if $use_nic_bridge config {