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

Implement LINKSTATE_GET netlink request to get link state information.

At the moment, only link up flag as provided by ETHTOOL_GLINK ioctl command
is returned.

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