]> git.ipfire.org Git - thirdparty/linux.git/commit
ethtool: ntuple: fix rss + ring_cookie check
authorJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2025 01:30:38 +0000 (17:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Feb 2025 02:38:58 +0000 (18:38 -0800)
commit2b91cc1214b165c25ac9b0885db89a0d3224028a
treec93a829357e24c2c8eff674668a42d633ea5adee
parent244f8aa46fa9e2f4ea5fe0e04988b395d5e30fc7
ethtool: ntuple: fix rss + ring_cookie check

The info.flow_type is for RXFH commands, ntuple flow_type is inside
the flow spec. The check currently does nothing, as info.flow_type
is 0 (or even uninitialized by user space) for ETHTOOL_SRXCLSRLINS.

Fixes: 9e43ad7a1ede ("net: ethtool: only allow set_rxnfc with rss + ring_cookie if driver opts in")
Reviewed-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250201013040.725123-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c