linux/net/ethtool
Daniil Tatianin 27b5107850 net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
[ Upstream commit 9deb1e9fb8 ]

It's not very useful to copy back an empty ethtool_stats struct and
return 0 if we didn't actually have any stats. This also allows for
further simplification of this function in the future commits.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-24 07:24:31 +01:00
..
bitset.c
bitset.h
cabletest.c
channels.c
coalesce.c
common.c
common.h ethtool: add interface to interact with Ethernet Power Equipment 2022-10-03 17:33:57 -07:00
debug.c
eee.c
eeprom.c ethtool: eeprom: fix null-deref on genl_info in dump 2022-10-24 19:08:07 -07:00
features.c
fec.c
ioctl.c net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats 2023-01-24 07:24:31 +01:00
linkinfo.c
linkmodes.c
linkstate.c
Makefile ethtool: add interface to interact with Ethernet Power Equipment 2022-10-03 17:33:57 -07:00
module.c
netlink.c ethtool: add interface to interact with Ethernet Power Equipment 2022-10-03 17:33:57 -07:00
netlink.h ethtool: add interface to interact with Ethernet Power Equipment 2022-10-03 17:33:57 -07:00
pause.c
phc_vclocks.c
privflags.c
pse-pd.c ethtool: pse-pd: fix null-deref on genl_info in dump 2022-10-21 13:18:05 +01:00
rings.c
stats.c
strset.c
tsinfo.c
tunnels.c
wol.c