]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: ethtool: Supply ntuple rss context action
authorDaniel Xu <dxu@dxuuu.xyz>
Wed, 27 Nov 2024 22:58:29 +0000 (15:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:04 +0000 (20:03 +0100)
commit9a97fb4fdb81fdae2f7f9a5b39836b2ffe4de294
tree9a4e201ed87b62c623c45a00e8f37ba8de2fe849
parent7ea527fbd7b94d0bee64a0a7e98279bcc654b322
bnxt_en: ethtool: Supply ntuple rss context action

[ Upstream commit be75cda92a65a13db242117d674cd5584477a168 ]

Commit 2f4f9fe5bf5f ("bnxt_en: Support adding ntuple rules on RSS
contexts") added support for redirecting to an RSS context as an ntuple
rule action. However, it forgot to update the ETHTOOL_GRXCLSRULE
codepath. This caused `ethtool -n` to always report the action as
"Action: Direct to queue 0" which is wrong.

Fix by teaching bnxt driver to report the RSS context when applicable.

Fixes: 2f4f9fe5bf5f ("bnxt_en: Support adding ntuple rules on RSS contexts")
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://patch.msgid.link/2e884ae39e08dc5123be7c170a6089cefe6a78f7.1732748253.git.dxu@dxuuu.xyz
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c