OpenCloudOS-Kernel/net/ethtool
Jakub Kicinski 7afa2e36c2 ethtool: fec: sanitize ethtool_fecparam->active_fec
struct ethtool_fecparam::active_fec is a GET-only field,
all in-tree drivers correctly ignore it on SET. Clear
the field on SET to avoid any confusion. Again, we can't
reject non-zero now since ethtool user space does not
zero-init the param correctly.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: hongrongxuan <hongrongxuan@huawei.com>
2024-06-12 13:17:37 +08:00
..
Makefile ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
bitset.c ethtool: fix stack overflow in ethnl_parse_bitset() 2024-06-12 13:17:35 +08:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2024-06-12 13:17:17 +08:00
channels.c ethtool: check if there is at least one channel for TX/RX in the core 2024-06-12 13:17:28 +08:00
coalesce.c ethtool: add COALESCE_NTF notification 2024-06-12 13:17:24 +08:00
common.c ethtool: Add 100base-FX link mode entries 2024-06-12 13:17:34 +08:00
common.h ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
debug.c ethtool: fix reference leak in some *_SET handlers 2024-06-12 13:17:22 +08:00
eee.c ethtool: add EEE_NTF notification 2024-06-12 13:17:26 +08:00
features.c ethtool: add FEATURES_NTF notification 2024-06-12 13:17:18 +08:00
ioctl.c ethtool: fec: sanitize ethtool_fecparam->active_fec 2024-06-12 13:17:37 +08:00
linkinfo.c ethtool: linkinfo: remove an unnecessary NULL check 2024-06-12 13:17:30 +08:00
linkmodes.c ethtool: Add 100base-FX link mode entries 2024-06-12 13:17:34 +08:00
linkstate.c ethtool: Add link extended state 2024-06-12 13:17:32 +08:00
netlink.c ethtool: mark netlink family as __ro_after_init 2024-06-12 13:17:34 +08:00
netlink.h ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
pause.c ethtool: add standard pause stats 2024-06-12 13:17:33 +08:00
privflags.c ethtool: fix reference leak in ethnl_set_privflags() 2024-06-12 13:17:23 +08:00
rings.c ethtool: add RINGS_NTF notification 2024-06-12 13:17:20 +08:00
strset.c ethtool: fix string set id check 2024-06-12 13:17:35 +08:00
tsinfo.c ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
wol.c ethtool: fix reference leak in some *_SET handlers 2024-06-12 13:17:22 +08:00