ethtool: set link modes related data with LINKMODES_SET request
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Dec 2019 14:56:13 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:40:02 +0000 (16:40 -0800)
commitbfbcfe2032e70bd8598d680d39ac177d507e39ac
tree327923c007619970e4b785454d66c592e7a83049
parentf625aa9be8c10f2e4dc677837e240730a25feda7
ethtool: set link modes related data with LINKMODES_SET request

Implement LINKMODES_SET netlink request to set advertised linkmodes and
related attributes as ETHTOOL_SLINKSETTINGS and ETHTOOL_SSET commands do.

The request allows setting autonegotiation flag, speed, duplex and
advertised link modes.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h
net/ethtool/linkmodes.c
net/ethtool/netlink.c
net/ethtool/netlink.h