]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ethtool: make ethtool_ops::cap_rss_ctx_supported optional
authorJakub Kicinski <kuba@kernel.org>
Sat, 10 Aug 2024 05:37:20 +0000 (22:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2024 13:16:24 +0000 (14:16 +0100)
commitce056504e2e53b22c1f789cff2ad6a0a135dc24d
treec8895b5816e3b10aa26f85ceafe560991c9ff93c
parenta7f6f56f604a396f91d891321edb29f286a80069
ethtool: make ethtool_ops::cap_rss_ctx_supported optional

cap_rss_ctx_supported was created because the API for creating
and configuring additional contexts is mux'ed with the normal
RSS API. Presence of ops does not imply driver can actually
support rss_context != 0 (in fact drivers mostly ignore that
field). cap_rss_ctx_supported lets core check that the driver
is context-aware before calling it.

Now that we have .create_rxfh_context, there is no such
ambiguity. We can depend on presence of the op.
Make setting the bit optional.

Reviewed-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/ethtool/ioctl.c
net/ethtool/rss.c