]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: ncdevmem: add -n flag to skip NIC configuration
authorBobby Eshleman <bobbyeshleman@meta.com>
Thu, 14 May 2026 17:22:31 +0000 (10:22 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 May 2026 01:49:07 +0000 (18:49 -0700)
commitecbdf3da7813db00014ff8b091bb66303bba29a0
tree2b2667037daeec1ebbe5a851fc5742b0f28b2242
parent1abe839b34aea45051d08ccf99229e74e18abdf3
selftests: drv-net: ncdevmem: add -n flag to skip NIC configuration

Add a -n (skip_config) flag that causes ncdevmem to skip NIC
configuration when operating as an RX server. When -n is passed,
ncdevmem skips configuring header split, RSS, and flow steering, as well
as their teardown on exit.

This allows ksft tests to pre-configure the NIC in the host namespace
before launching ncdevmem in the guest namespace. This is needed for
netkit devmem tests where the test harness namespace has direct access
to the NIC and the ncdevmem namespace does not.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Bobby Eshleman <bobbyeshleman@meta.com>
Link: https://patch.msgid.link/20260514-tcp-dm-netkit-v5-4-408c59b91e66@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/ncdevmem.c