ethtool: set link settings with LINKINFO_SET request
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Dec 2019 14:55:53 +0000 (15:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:40:02 +0000 (16:40 -0800)
commita53f3d41e4d3df46aba254ba51e7fbe45470fece
treef627b68a30e26b61821519e9ef7d239b5cff2094
parent459e0b81b37043545d90629fdfb243444151e77d
ethtool: set link settings with LINKINFO_SET request

Implement LINKINFO_SET netlink request to set link settings queried by
LINKINFO_GET message.

Only physical port, phy MDIO address and MDI(-X) control can be set,
attempt to modify MDI(-X) status and transceiver is rejected.

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