From 0d5d74fec6fba097b57b702fc60b0462c56cba1c Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Wed, 18 Sep 2013 16:24:25 +0200 Subject: [PATCH] netperf: enable netperf_bridge test on linux Statically configured NIC bridge clients must be configured via nodes in the config. Otherwise, the bridge can't answer ARP requests or route traffic. --- ports/run/netperf.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ports/run/netperf.inc b/ports/run/netperf.inc index f4f561292c..850bbd7281 100644 --- a/ports/run/netperf.inc +++ b/ports/run/netperf.inc @@ -64,6 +64,8 @@ create_boot_directory # Generate config # +set lx_ip_addr "10.0.2.55" + set config { @@ -98,7 +100,11 @@ append_if $use_nic_bridge config { - + } +append_if [expr $use_nic_bridge && [have_spec linux]] config " + " +append_if $use_nic_bridge config { + } append_if $use_nic_bridge config " @@ -156,7 +162,6 @@ append config { } -set lx_ip_addr "10.0.2.55" append_if [have_spec linux] config " " append config {