Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v1 1/2] selftests: drv-net: devmem: fix 5-tuple flow steering
@ 2026-08-01 13:11 Mina Almasry
  2026-08-01 13:11 ` [PATCH net-next v1 2/2] selftests: drv-net: ncdevmem: gracefully retry bind() Mina Almasry
  0 siblings, 1 reply; 2+ messages in thread
From: Mina Almasry @ 2026-08-01 13:11 UTC (permalink / raw)
  To: netdev
  Cc: Mina Almasry, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Shuah Khan, Stanislav Fomichev,
	Bobby Eshleman, open list:KERNEL SELFTEST FRAMEWORK, open list

When configuring traffic for the devmem tests, 5-tuple flow steering may
be required if the environment does not provide network namespaces.
Pass the correct remote address parameter and fall back to 5-tuple flow
steering if netns is not available.

Signed-off-by: Mina Almasry <almasrymina@google.com>
---
 tools/testing/selftests/drivers/net/hw/devmem_lib.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/drivers/net/hw/devmem_lib.py b/tools/testing/selftests/drivers/net/hw/devmem_lib.py
index 0921ff03eb81c..3ede6fd426929 100644
--- a/tools/testing/selftests/drivers/net/hw/devmem_lib.py
+++ b/tools/testing/selftests/drivers/net/hw/devmem_lib.py
@@ -111,7 +111,7 @@ def ncdevmem_tx(cfg, port, chunk_size=0):
     else:
         ifname = cfg.ifname
         addr = cfg.remote_addr
-        extras = []
+        extras = [f"-c {cfg.addr}"]
 
     if chunk_size:
         extras.append(f"-z {chunk_size}")
@@ -212,7 +212,7 @@ def run_rx_hds(cfg):
         port = rand_port()
 
         listen_cmd = ncdevmem_rx(cfg, port, verify=False,
-                                 fail_on_linear=True)
+                                 fail_on_linear=True, flow_steer=not hasattr(cfg, 'netns'))
         socat = socat_send(cfg, port, buf_size=size)
 
         with bkg(listen_cmd, exit_wait=True, ns=netns) as ncdevmem:
-- 
2.55.0.571.g244d577d93-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-01 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01 13:11 [PATCH net-next v1 1/2] selftests: drv-net: devmem: fix 5-tuple flow steering Mina Almasry
2026-08-01 13:11 ` [PATCH net-next v1 2/2] selftests: drv-net: ncdevmem: gracefully retry bind() Mina Almasry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox