diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-08-08 17:12:03 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-08-12 14:43:05 +0200 |
commit | bda053d6445717f8a4cd76f88caea2e39299fe07 (patch) | |
tree | 6463d5bf751cf53c1b96d22e95b69b3a3a170576 /scripts/lib | |
parent | e93f7af148222303c4632318536c0f649b4ee5b1 (diff) |
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 <kuba@kernel.org>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20250809001205.1147153-2-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions