WSL2-Linux-Kernel/net/ethtool
Oleksij Rempel 7320fbdf46 ethtool: netlink: do not return SQI value if link is down
[ Upstream commit c184cf94e73b04ff7048d045f5413899bc664788 ]

Do not attach SQI value if link is down. "SQI values are only valid if
link-up condition is present" per OpenAlliance specification of
100Base-T1 Interoperability Test suite [1]. The same rule would apply
for other link types.

[1] https://opensig.org/automotive-ethernet-specifications/#

Fixes: 8066021915 ("ethtool: provide UAPI for PHY Signal Quality Index (SQI)")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Woojung Huh <woojung.huh@microchip.com>
Link: https://patch.msgid.link/20240709061943.729381-1-o.rempel@pengutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-18 13:07:38 +02:00
..
Makefile
bitset.c
bitset.h
cabletest.c
channels.c
coalesce.c
common.c
common.h
debug.c
eee.c
eeprom.c ethtool: eeprom: fix null-deref on genl_info in dump 2022-11-03 23:59:14 +09:00
features.c ethtool: netlink: Add missing ethnl_ops_begin/complete 2024-01-25 14:52:54 -08:00
fec.c
ioctl.c ethtool: Fix uninitialized number of lanes 2023-05-17 11:50:18 +02:00
linkinfo.c
linkmodes.c ethtool: reset #lanes when lanes is omitted 2023-04-13 16:48:20 +02:00
linkstate.c ethtool: netlink: do not return SQI value if link is down 2024-07-18 13:07:38 +02:00
netlink.c ethtool: do not perform operations on net devices being unregistered 2021-12-14 10:57:09 +01:00
netlink.h
pause.c ethtool: fix ethtool msg len calculation for pause stats 2021-11-18 19:17:06 +01:00
phc_vclocks.c
privflags.c
rings.c
stats.c
strset.c
tsinfo.c
tunnels.c
wol.c