]> 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)
commita0ef2a2f1ad24fc261aa787dde24881cdc55345d
tree64d64b6ff1227480322ea98052da87efd4f6cd7c
parent7b1b7ae70bfe43f88c88ec88c8fcb3969af3064b
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