kernel_optimize_test/net/ethtool
Michal Kubecek 0c84979c95 ethtool: provide channel counts with CHANNELS_GET request
Implement CHANNELS_GET request to get channel counts of a network device.
These are traditionally available via ETHTOOL_GCHANNELS ioctl request.

Omit attributes for channel types which are not supported by driver or
device (zero reported for maximum).

v2: (all suggested by Jakub Kicinski)
  - minor cleanup in channels_prepare_data()
  - more descriptive channels_reply_size()
  - omit attributes with zero max count

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-12 15:32:33 -07:00
..
bitset.c ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
channels.c ethtool: provide channel counts with CHANNELS_GET request 2020-03-12 15:32:33 -07:00
common.c ethtool: Add support for low latency RS FEC 2020-02-18 19:17:31 -08:00
common.h ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
debug.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00
features.c ethtool: add FEATURES_NTF notification 2020-03-12 15:32:33 -07:00
ioctl.c ethtool: add RINGS_NTF notification 2020-03-12 15:32:33 -07:00
linkinfo.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00
linkmodes.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00
linkstate.c
Makefile ethtool: provide channel counts with CHANNELS_GET request 2020-03-12 15:32:33 -07:00
netlink.c ethtool: provide channel counts with CHANNELS_GET request 2020-03-12 15:32:33 -07:00
netlink.h ethtool: provide channel counts with CHANNELS_GET request 2020-03-12 15:32:33 -07:00
privflags.c ethtool: add PRIVFLAGS_NTF notification 2020-03-12 15:32:33 -07:00
rings.c ethtool: add RINGS_NTF notification 2020-03-12 15:32:33 -07:00
strset.c ethtool: provide WoL settings with WOL_GET request 2020-01-27 11:31:36 +01:00
wol.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00