diff options
author | Yinjun Zhang <yinjun.zhang@corigine.com> | 2021-02-25 13:51:02 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-28 11:49:07 -0800 |
commit | a4fc088ad4ff4a99d01978aa41065132b574b4b2 (patch) | |
tree | d81ea405c161b3812696a62e69f6bce5a93781ff /mm/mmap.c | |
parent | eee7ede695cfbb19fefdeb14992535b605448f35 (diff) |
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: 7be92514b99c ("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>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions