aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-08-09 00:12:03 +0000
committerPaolo Abeni <[email protected]>2025-08-12 12:43:05 +0000
commitbda053d6445717f8a4cd76f88caea2e39299fe07 (patch)
tree6463d5bf751cf53c1b96d22e95b69b3a3a170576 /net/core/dev.c
parentdocs: Fix name for net.ipv4.udp_child_hash_entries (diff)
downloadkernel-bda053d6445717f8a4cd76f88caea2e39299fe07.tar.gz
kernel-bda053d6445717f8a4cd76f88caea2e39299fe07.zip
selftests: drv-net: don't assume device has only 2 queues
The test is implicitly assuming the device only has 2 queues. A real device will likely have more. The exact problem is that because NAPIs get added to the list from the head, the netlink dump reports them in reverse order. So the naive napis[0] will actually likely give us the _last_ NAPI, not the first one. Re-enable all the NAPIs instead of hard-coding 2 in the test. This way the NAPIs we operated on will always reappear, doesn't matter where they were in the registration order. Fixes: e6d76268813d ("net: Update threaded state in napi config in netif_set_threaded") Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Joe Damato <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions