When testing UDP stream via router (and not bridge), don't use SO_DONTROUTE
socket opt, since the UDP should go via Linux routing table.
Signed-off-by: Elad Raz <eladr(a)mellanox.com>
---
recipes/switchdev/TestLib.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/recipes/switchdev/TestLib.py b/recipes/switchdev/TestLib.py
index 152e76e..9c5cffb 100644
--- a/recipes/switchdev/TestLib.py
+++ b/recipes/switchdev/TestLib.py
@@ -135,6 +135,7 @@ class TestLib:
"num_parallel" : num_parallel,
"testname" : testname,
"netperf_opts" : "-L %s%s" % (if2.get_ip(addr_index),
ipv6_str),
+ "testoptions" : "-R 1",
}
return self._ctl.get_module("Netperf", options = modules_options)
--
2.4.3