WSL2-Linux-Kernel/net/ethtool
Yinjun Zhang a4fc088ad4 ethtool: fix the check logic of at least one channel for RX/TX
The command "ethtool -L <intf> combined 0" may clean the RX/TX channel
count and skip the error path, since the attrs
tb[ETHTOOL_A_CHANNELS_RX_COUNT] and tb[ETHTOOL_A_CHANNELS_TX_COUNT]
are NULL in this case when recent ethtool is used.

Tested using ethtool v5.10.

Fixes: 7be92514b9 ("ethtool: check if there is at least one channel for TX/RX in the core")
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Louis Peens <louis.peens@netronome.com>
Link: https://lore.kernel.org/r/20210225125102.23989-1-simon.horman@netronome.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-02-28 11:49:07 -08:00
..
Makefile
bitset.c
bitset.h
cabletest.c
channels.c ethtool: fix the check logic of at least one channel for RX/TX 2021-02-28 11:49:07 -08:00
coalesce.c
common.c net: hsr: add offloading support 2021-02-11 13:24:44 -08:00
common.h ethtool: Get link mode in use instead of speed and duplex parameters 2021-02-03 18:37:29 -08:00
debug.c
eee.c
features.c
ioctl.c ethtool: Get link mode in use instead of speed and duplex parameters 2021-02-03 18:37:29 -08:00
linkinfo.c
linkmodes.c ethtool: Expose the number of lanes in use 2021-02-03 18:37:29 -08:00
linkstate.c
netlink.c
netlink.h ethtool: Extend link modes settings uAPI with lanes 2021-02-03 18:37:28 -08:00
pause.c
privflags.c
rings.c
strset.c
tsinfo.c
tunnels.c
wol.c