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

Implement EEE_SET netlink request to set EEE settings of a network device.
These are traditionally set with ETHTOOL_SEEE ioctl request.

The netlink interface allows setting the EEE status for all link modes
supported by kernel but only first 32 link modes can be set at the moment
as only those are supported by the ethtool_ops callback.

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/eee.c
net/ethtool/netlink.c
net/ethtool/netlink.h