aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/netlink/specs
diff options
context:
space:
mode:
authorSamiullah Khawaja <skhawaja@google.com>2025-07-10 21:12:03 +0000
committerJakub Kicinski <kuba@kernel.org>2025-07-14 18:02:37 -0700
commit2677010e7793451c20d895c477c4dc76f6e6a10e (patch)
treeb01196cdc5e5b9804e2a073f1ec4abff855c0665 /Documentation/netlink/specs
parentnet: phy: Don't register LEDs for genphy (diff)
downloadwireguard-linux-2677010e7793451c20d895c477c4dc76f6e6a10e.tar.xz
wireguard-linux-2677010e7793451c20d895c477c4dc76f6e6a10e.zip
Add support to set NAPI threaded for individual NAPI
A net device has a threaded sysctl that can be used to enable threaded NAPI polling on all of the NAPI contexts under that device. Allow enabling threaded NAPI polling at individual NAPI level using netlink. Extend the netlink operation `napi-set` and allow setting the threaded attribute of a NAPI. This will enable the threaded polling on a NAPI context. Add a test in `nl_netdev.py` that verifies various cases of threaded NAPI being set at NAPI and at device level. Tested ./tools/testing/selftests/net/nl_netdev.py TAP version 13 1..7 ok 1 nl_netdev.empty_check ok 2 nl_netdev.lo_check ok 3 nl_netdev.page_pool_check ok 4 nl_netdev.napi_list_check ok 5 nl_netdev.dev_set_threaded ok 6 nl_netdev.napi_set_threaded ok 7 nl_netdev.nsim_rxq_reset_down # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Samiullah Khawaja <skhawaja@google.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20250710211203.3979655-1-skhawaja@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/netlink/specs')
-rw-r--r--Documentation/netlink/specs/netdev.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/netlink/specs/netdev.yaml b/Documentation/netlink/specs/netdev.yaml
index ce4cfec82100..85d0ea6ac426 100644
--- a/Documentation/netlink/specs/netdev.yaml
+++ b/Documentation/netlink/specs/netdev.yaml
@@ -283,6 +283,14 @@ attribute-sets:
doc: The timeout, in nanoseconds, of how long to suspend irq
processing, if event polling finds events
type: uint
+ -
+ name: threaded
+ doc: Whether the NAPI is configured to operate in threaded polling
+ mode. If this is set to 1 then the NAPI context operates in
+ threaded polling mode.
+ type: uint
+ checks:
+ max: 1
-
name: xsk-info
attributes: []
@@ -694,6 +702,7 @@ operations:
- defer-hard-irqs
- gro-flush-timeout
- irq-suspend-timeout
+ - threaded
dump:
request:
attributes:
@@ -746,6 +755,7 @@ operations:
- defer-hard-irqs
- gro-flush-timeout
- irq-suspend-timeout
+ - threaded
-
name: bind-tx
doc: Bind dmabuf to netdev for TX