]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ethtool: Track user-provided RSS indirection table size
authorBjörn Töpel <bjorn@kernel.org>
Fri, 20 Mar 2026 08:58:21 +0000 (09:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Mar 2026 00:59:53 +0000 (17:59 -0700)
commit0475f9e779b456f934adbc44eeb98e3080a1893f
tree916a2b62c3758febaa7d7e5d427d7220a474f2bb
parent9027497a25e3c92b5053b2643e0c18f910865625
ethtool: Track user-provided RSS indirection table size

Track the number of indirection table entries the user originally
provided (context 0/default as well!).

Replace IFF_RXFH_CONFIGURED with rss_indir_user_size: the flag is
redundant now that user_size captures the same information.

Add ethtool_rxfh_indir_lost() for drivers that must reset the
indirection table.

Convert bnxt and mlx5 to use it.

Signed-off-by: Björn Töpel <bjorn@kernel.org>
Link: https://patch.msgid.link/20260320085826.1957255-2-bjorn@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/linux/ethtool.h
include/linux/netdevice.h
net/ethtool/common.c
net/ethtool/ioctl.c
net/ethtool/rss.c