Skip to content

ethtool: rss: support creating and removing contexts via Netlink

Jakub Kicinski netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 6 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8ethtool: assert that drivers with sym hash are consistent for RSS contextsnet/ethtool/common.c+4 -00 repliesApplied
2/8ethtool: rejig the RSS notification machinery for more typesnet/ethtool/common.h net/ethtool/ioctl.c net/ethtool/rss.c+12 -91 replyApplied
3/8ethtool: rss: factor out allocating memory for responsenet/ethtool/rss.c+30 -170 repliesApplied
4/8ethtool: rss: factor out populating response from contextnet/ethtool/rss.c+22 -101 replyApplied
5/8ethtool: move ethtool_rxfh_ctx_alloc() to common codenet/ethtool/common.c net/ethtool/common.h net/ethtool/ioctl.c+37 -341 replyApplied
6/8ethtool: rss: support creating contexts via NetlinkDocumentation/netlink/specs/ethtool.yaml Documentation/networking/ethtool-netlink.rst include/uapi/linux/ethtool_netlink_generated.h +4 more+273 -23 repliesApplied
7/8ethtool: rss: support removing contexts via NetlinkDocumentation/netlink/specs/ethtool.yaml Documentation/networking/ethtool-netlink.rst include/uapi/linux/ethtool_netlink_generated.h +5 more+153 -10 repliesApplied
8/8selftests: drv-net: rss_api: context create and delete teststools/testing/selftests/drivers/net/hw/rss_api.py+73 -00 repliesApplied

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchGal Pressman
1/8
2/8R-b
3/8
4/8R-b
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/8] ethtool: rss: support creating and removing contexts via Netlink

This series completes support of RSS configuration via Netlink. All functionality supported by the IOCTL is now supported by Netlink. Future series (time allowing) will add:
- hashing on the flow label, which started this whole thing;
- pinning the RSS context to a Netlink socket for auto-cleanup.

The first patch is a leftover held back from previous series to avoid conflicting with Gal's fix.

Next 4 patches refactor existing code to make reusing it for context creation possible. 2 patches after that add create and delete commands. Last but not least the test is extended.

Jakub Kicinski (8):
ethtool: assert that drivers with sym hash are consistent for RSS
contexts
ethtool: rejig the RSS notification machinery for more types
ethtool: rss: factor out allocating memory for response
ethtool: rss: factor out populating response from context
ethtool: move ethtool_rxfh_ctx_alloc() to common code
ethtool: rss: support creating contexts via Netlink
ethtool: rss: support removing contexts via Netlink
selftests: drv-net: rss_api: context create and delete tests

 Documentation/netlink/specs/ethtool.yaml      |  41 +-
 Documentation/networking/ethtool-netlink.rst  |  41 ++
 .../uapi/linux/ethtool_netlink_generated.h    |   5 +
 net/ethtool/common.h                          |   8 +-
 net/ethtool/netlink.h                         |   5 +
 net/ethtool/common.c                          |  39 ++
 net/ethtool/ioctl.c                           |  48 +--
 net/ethtool/netlink.c                         |  22 +
 net/ethtool/rss.c                             | 393 ++++++++++++++++--
 .../selftests/drivers/net/hw/rss_api.py       |  73 ++++
 10 files changed, 603 insertions(+), 72 deletions(-)
Signature · 1 line
2.50.1