aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz_common.c
diff options
context:
space:
mode:
authorGal Pressman <[email protected]>2024-08-07 17:33:52 +0000
committerJakub Kicinski <[email protected]>2024-08-08 15:57:55 +0000
commit4d7c3c1aba3ca12fad2e90163b8d5153363f93e5 (patch)
treeb7892da35f3ada3f47db90526e87d4340812c538 /drivers/net/dsa/microchip/ksz_common.c
parentnet: ethtool: fix off-by-one error in max RSS context IDs (diff)
downloadkernel-4d7c3c1aba3ca12fad2e90163b8d5153363f93e5.tar.gz
kernel-4d7c3c1aba3ca12fad2e90163b8d5153363f93e5.zip
ethtool: Fix context creation with no parameters
The 'at least one change' requirement is not applicable for context creation, skip the check in such case. This allows a command such as 'ethtool -X eth0 context new' to work. The command works by mistake when using older versions of userspace ethtool due to an incompatibility issue where rxfh.input_xfrm is passed as zero (unset) instead of RXH_XFRM_NO_CHANGE as done with recent userspace. This patch does not try to solve the incompatibility issue. Link: https://lore.kernel.org/netdev/[email protected]/ Fixes: 84a1d9c48200 ("net: ethtool: extend RXNFC API to support RSS spreading of filter matches") Reviewed-by: Dragos Tatulea <[email protected]> Reviewed-by: Jianbo Liu <[email protected]> Signed-off-by: Gal Pressman <[email protected]> Reviewed-by: Edward Cree <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
0 files changed, 0 insertions, 0 deletions