]> asedeno.scripts.mit.edu Git - linux.git/commit
ethtool: provide link mode information with LINKMODES_GET request
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Dec 2019 14:56:08 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:40:02 +0000 (16:40 -0800)
commitf625aa9be8c10f2e4dc677837e240730a25feda7
tree0d6ee55c38a6a26d3101c74ac594c0641e016436
parent73286734c1b0d009fd317c2a74e173cb22233dad
ethtool: provide link mode information with LINKMODES_GET request

Implement LINKMODES_GET netlink request to get link modes related
information provided by ETHTOOL_GLINKSETTINGS and ETHTOOL_GSET ioctl
commands.

This request provides supported, advertised and peer advertised link modes,
autonegotiation flag, speed and duplex.

LINKMODES_GET request can be used with NLM_F_DUMP (without device
identification) to request the information for all devices in current
network namespace providing the data.

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/linux/ethtool_netlink.h
include/uapi/linux/ethtool_netlink.h
net/ethtool/Makefile
net/ethtool/linkmodes.c [new file with mode: 0644]
net/ethtool/netlink.c
net/ethtool/netlink.h