]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: do not allow VF to configure the RSS key
authorWei Fang <wei.fang@nxp.com>
Thu, 26 Mar 2026 07:52:33 +0000 (15:52 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Mar 2026 03:56:46 +0000 (20:56 -0700)
commita142d139168cce8d5776245b5494c7f7f5d7fb7d
tree2cc9602bd95fd94c7c06a73ac76386a32bfab4f1
parentd389954a6cae7bf76b7b082ac3511d177b77ef2d
net: enetc: do not allow VF to configure the RSS key

VFs do not have privilege to configure the RSS key because the registers
are owned by the PF. Currently, if VF attempts to configure the RSS key,
enetc_set_rxfh() simply skips the configuration and does not generate a
warning, which may mislead users into thinking the feature is supported.
To improve this situation, add a check to reject RSS key configuration
on VFs.

Fixes: d382563f541b ("enetc: Add RFS and RSS support")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://patch.msgid.link/20260326075233.3628047-3-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c