Files
twx-linux/include/linux
Edward Cree ad1ec19b0b net: ethtool: only allow set_rxnfc with rss + ring_cookie if driver opts in
[ Upstream commit 9e43ad7a1e ]

Ethtool ntuple filters with FLOW_RSS were originally defined as adding
 the base queue ID (ring_cookie) to the value from the indirection table,
 so that the same table could distribute over more than one set of queues
 when used by different filters.
However, some drivers / hardware ignore the ring_cookie, and simply use
 the indirection table entries as queue IDs directly.  Thus, for drivers
 which have not opted in by setting ethtool_ops.cap_rss_rxnfc_adds to
 declare that they support the original (addition) semantics, reject in
 ethtool_set_rxnfc any filter which combines FLOW_RSS and a nonzero ring.
(For a ring_cookie of zero, both behaviours are equivalent.)
Set the cap bit in sfc, as it is known to support this feature.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://patch.msgid.link/cc3da0844083b0e301a33092a6299e4042b65221.1731499022.git.ecree.xilinx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 4f5a52adeb ("ethtool: Fix set RXNFC command with symmetric RSS hash")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-08 09:58:06 +01:00
..
2024-12-05 14:01:23 +01:00
2025-01-09 13:33:32 +01:00
2024-09-03 21:15:36 -07:00
2024-12-14 20:03:35 +01:00
2024-10-01 17:01:40 +02:00
2025-02-01 18:39:37 +01:00
2024-09-09 16:39:05 -07:00
2025-02-08 09:57:11 +01:00
2024-09-03 21:15:46 -07:00
2024-09-20 18:28:26 +03:00
2024-09-09 16:39:04 -07:00
2025-01-17 13:40:50 +01:00
2025-02-08 09:57:23 +01:00
2025-02-08 09:57:10 +01:00
2024-09-23 15:03:30 -04:00
2024-09-19 14:25:32 -05:00
2024-09-17 01:06:59 -07:00
2025-01-23 17:22:53 +01:00
2024-09-05 11:14:14 +02:00
2025-02-01 18:39:35 +01:00
2024-09-11 20:44:31 -07:00
2024-09-11 20:44:32 -07:00
2024-09-12 12:20:39 +02:00