]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: drv-net: add tests for napi IRQ affinity notifiers
authorJakub Kicinski <kuba@kernel.org>
Mon, 24 Feb 2025 23:22:27 +0000 (16:22 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Feb 2025 03:51:38 +0000 (19:51 -0800)
commit185646a8a0a88c9016a782f9b98eea0eb6078512
tree8891f6113e03f007c711cddc12fe5662c920c8fc
parentdeab38f8f0118615feed2cd95da5f17aa9bff7ef
selftests: drv-net: add tests for napi IRQ affinity notifiers

Add tests to check that the napi retained the IRQ after down/up,
multiple changes in the number of rx queues and after
attaching/releasing XDP program.

Tested on ice and idpf:

   # NETIF=<iface> tools/testing/selftests/drivers/net/hw/irq.py
    KTAP version 1
    1..4
    ok 1 irq.check_irqs_reported
    ok 2 irq.check_reconfig_queues
    ok 3 irq.check_reconfig_xdp
    ok 4 irq.check_down
    # Totals: pass:4 fail:0 xfail:0 xpass:0 skip:0 error:0

Tested-by: Ahmed Zaki <ahmed.zaki@intel.com>
Link: https://patch.msgid.link/20250224232228.990783-7-ahmed.zaki@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/irq.py [new file with mode: 0755]
tools/testing/selftests/drivers/net/hw/xdp_dummy.bpf.c [new file with mode: 0644]
tools/testing/selftests/drivers/net/lib/py/env.py