]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ethtool: pass the num of RX rings directly to ethtool_copy_validate_indir
authorBreno Leitao <leitao@debian.org>
Wed, 17 Sep 2025 09:58:08 +0000 (02:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 14:07:36 +0000 (07:07 -0700)
commit3efaede2e13b0c0372500a6acdfc5c31268a3ed4
tree69591c7c8e4593f959befc533fb2b162b82bade3
parent672beab06656f2f1bda4708cda2b9af61c58a7ea
net: ethtool: pass the num of RX rings directly to ethtool_copy_validate_indir

Modify ethtool_copy_validate_indir() and callers to validate indirection
table entries against the number of RX rings as an integer instead of
accessing rx_rings->data.

This will be useful in the future, given that struct ethtool_rxnfc might
not exist for native GRXRINGS call.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250917-gxrings-v4-1-dae520e2e1cb@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c