aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2025-07-14 09:56:50 +0000
committerJakub Kicinski <[email protected]>2025-07-17 00:25:49 +0000
commitb3019343e4bde385d1d59918b2e3ffa4eb340739 (patch)
tree8f9221afd7ed372d1e71516ea9b88c2cf7903e12 /net/switchdev/switchdev.c
parentselftests: drv-net: Strip '@' prefix from bpftrace map keys (diff)
downloadkernel-b3019343e4bde385d1d59918b2e3ffa4eb340739.tar.gz
kernel-b3019343e4bde385d1d59918b2e3ffa4eb340739.zip
selftests: net: add netpoll basic functionality test
Add a basic selftest for the netpoll polling mechanism, specifically targeting the netpoll poll() side. The test creates a scenario where network transmission is running at maximum speed, and netpoll needs to poll the NIC. This is achieved by: 1. Configuring a single RX/TX queue to create contention 2. Generating background traffic to saturate the interface 3. Sending netconsole messages to trigger netpoll polling 4. Using dynamic netconsole targets via configfs 5. Delete and create new netconsole targets after some messages 6. Start a bpftrace in parallel to make sure netpoll_poll_dev() is called 7. If bpftrace exists and netpoll_poll_dev() was called, stop. The test validates a critical netpoll code path by monitoring traffic flow and ensuring netpoll_poll_dev() is called when the normal TX path is blocked. This addresses a gap in netpoll test coverage for a path that is tricky for the network stack. Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions