]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: check if there is at least one channel for TX/RX in the core
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 May 2020 19:49:00 +0000 (12:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 20:56:30 +0000 (13:56 -0700)
commitd7ca97ff6cca238b11fb4724809b9c68a878f993
tree7a3f34fe230881653b8bf6a7cd18cbcdc32dd7a2
parent58e89daf155011adf69414b1ec1b694feaeb8e81
ethtool: check if there is at least one channel for TX/RX in the core

Having a channel config with no ability to RX or TX traffic is
clearly wrong. Check for this in the core so the drivers don't
have to.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/channels.c
net/ethtool/ioctl.c