ethtool: rss: support creating contexts via Netlink
authorJakub Kicinski <kuba@kernel.org>
Thu, 17 Jul 2025 23:43:41 +0000 (16:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Jul 2025 01:20:43 +0000 (18:20 -0700)
commita166ab7816c534973745b0fe7bce3c8cefc5426f
tree47c5195f33afc6849840550cf6b434033c1ca1d0
parent55ef461ce18fbe678f0b4834fc1eaa38c24f83fe
ethtool: rss: support creating contexts via Netlink

Support creating contexts via Netlink. Setting flow hashing
fields on the new context is not supported at this stage,
it can be added later.

An empty indirection table is not supported. This is a carry
over from the IOCTL interface where empty indirection table
meant delete. We can repurpose empty indirection table in
Netlink but for now to avoid confusion reject it using the
policy.

Support letting user choose the ID for the new context. This was
not possible in IOCTL since the context ID field for the create
action had to be set to the ETH_RXFH_CONTEXT_ALLOC magic value.

Link: https://patch.msgid.link/20250717234343.2328602-7-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/ethtool.yaml
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink_generated.h
net/ethtool/ioctl.c
net/ethtool/netlink.c
net/ethtool/netlink.h
net/ethtool/rss.c