]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: provide EEE settings with EEE_GET request
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Mar 2020 23:01:38 +0000 (00:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:32:36 +0000 (22:32 -0700)
commit6840f2d77993738825c3ec1c4c1ab83aba7a368e
tree64d64b6ff1227480322ea98052da87efd4f6cd7c
parentd56eb88dea287ff781390a32506337fc55ba0cd3
ethtool: provide EEE settings with EEE_GET request

Implement EEE_GET request to get EEE settings of a network device. These
are traditionally available via ETHTOOL_GEEE ioctl request.

The netlink interface allows reporting EEE status for all link modes
supported by kernel but only first 32 link modes are provided at the moment
as only those are reported by the ethtool_ops callback and drivers.

v2: fix alignment (whitespace only)

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
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/eee.c [new file with mode: 0644]
net/ethtool/netlink.c
net/ethtool/netlink.h