ethtool: use the rss context XArray in ring deactivation safety-check
authorJakub Kicinski <kuba@kernel.org>
Wed, 10 Jul 2024 17:40:43 +0000 (10:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Jul 2024 21:41:42 +0000 (14:41 -0700)
commit24ac7e5440815bb03bdfa9bc7e43a412b050dbaa
tree828ecbbd7e07239fd315b887774d8c8aa7612805
parent2899d58462ba868287d6ff3acad3675e7adf934f
ethtool: use the rss context XArray in ring deactivation safety-check

ethtool_get_max_rxfh_channel() gets called when user requests
deactivating Rx channels. Check the additional RSS contexts, too.

While we do track whether RSS context has an indirection
table explicitly set by the user, no driver looks at that bit.
Assume drivers won't auto-regenerate the additional tables,
to be safe.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20240710174043.754664-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/common.c