Introduce napi queues support
Get series with b4
b4 am 168564116688.7284.6877238631049679250.stgit@anambiarhost.jf.intel.comVersions newest first
- v1 Latest4 patches 25 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net: Introduce new napi fields for rx/tx queuesinclude/ net/ | +28 | 11 replies | |
| 2/4 | net: Add support for associating napi with queue[s]drivers/ drivers/ drivers/ +2 more | +109 | 5 replies | |
| 3/4 | netdev-genl: Introduce netdev dump ctxnet/ | +18 | 0 replies | |
| 4/4 | netdev-genl: Add support for exposing napi info from netdevDocumentation/ include/ net/ +1 more | +247 | 7 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [net-next/RFC PATCH v1 0/4] Introduce napi queues support
Introduce support for associating napi instances with corresponding RX and TX queue set. Add the capability to export napi information supported by the device. Extend the netdev_genl generic netlink family for netdev with napi data. The napi fields exposed are:
- napi id
- queue/queue-set (both RX and TX) associated with each napi instance
Additional napi fields such as PID association for napi thread etc. can be supported in a follow-on patch set.
This series only supports 'get' ability for retrieving napi fields (specifically, napi ids and queue[s]). The 'set' ability for setting queue[s] associated with a napi instance via netdev-genl will be submitted as a separate patch series.
Previous discussion at:
https://lore.kernel.org/netdev/[email protected]/T/#m00999652a8b4731fbdb7bf698d2e3666c65a60e7
$ ./cli.py --spec netdev.yaml --do dev-get --json='{"ifindex": 12}'
[{'ifindex': 12,
'xdp-features': {'xsk-zerocopy', 'basic', 'rx-sg', 'redirect'}},
{'napi-info': [{'napi-id': 600, 'rx-queues': [7], 'tx-queues': [7]},
{'napi-id': 599, 'rx-queues': [6], 'tx-queues': [6]},
{'napi-id': 598, 'rx-queues': [5], 'tx-queues': [5]},
{'napi-id': 597, 'rx-queues': [4], 'tx-queues': [4]},
{'napi-id': 596, 'rx-queues': [3], 'tx-queues': [3]},
{'napi-id': 595, 'rx-queues': [2], 'tx-queues': [2]},
{'napi-id': 594, 'rx-queues': [1], 'tx-queues': [1]},
{'napi-id': 593, 'rx-queues': [0], 'tx-queues': [0]}]}]---
Amritha Nambiar (4):
net: Introduce new napi fields for rx/tx queues
net: Add support for associating napi with queue[s]
netdev-genl: Introduce netdev dump ctx
netdev-genl: Add support for exposing napi info from netdev
Documentation/netlink/specs/netdev.yaml | 39 ++++ drivers/net/ethernet/intel/ice/ice_lib.c | 57 ++++++ drivers/net/ethernet/intel/ice/ice_lib.h | 4 drivers/net/ethernet/intel/ice/ice_main.c | 4 include/linux/netdevice.h | 18 ++ include/uapi/linux/netdev.h | 4 net/core/dev.c | 55 ++++++ net/core/netdev-genl.c | 261 ++++++++++++++++++++++++----- tools/include/uapi/linux/netdev.h | 4 9 files changed, 402 insertions(+), 44 deletions(-)
--