]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: provide coalescing parameters with COALESCE_GET request
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Mar 2020 23:01:08 +0000 (00:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:32:36 +0000 (22:32 -0700)
commit688dde3a0a5a5919474aa07f8a2747c8222a1fc5
tree91206b05c8ebedb55e0165582a71c55469262c1b
parenta0b7503297dc7ec62505c61dc1874b7b0c226e97
ethtool: provide coalescing parameters with COALESCE_GET request

Implement COALESCE_GET request to get coalescing parameters of a network
device. These are traditionally available via ETHTOOL_GCOALESCE ioctl
request. This commit adds only support for device coalescing parameters,
not per queue coalescing parameters.

Omit attributes with zero values unless they are declared as supported
(i.e. the corresponding bit in ethtool_ops::supported_coalesce_params is
set).

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h
net/ethtool/Makefile
net/ethtool/coalesce.c [new file with mode: 0644]
net/ethtool/netlink.c
net/ethtool/netlink.h