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)
commitfd77be7bd43c578614165b1ae5fdb91b8f2f1689
treeff5e458ea9d78e7a6cb1b0f03dbe8de923aea724
parentb7eeefe72eb09a5dd9b259ab970d77d3e0fccdbd
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