diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2019-12-27 15:56:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-28 01:40:02 +0100 |
commit | 3d2b847fb99cf2b28aa046e486636e555bc6ed1c (patch) | |
tree | 216f898fac0e7de4b289a93f5f491492254eeb53 /net/ethtool/Makefile | |
parent | ethtool: add LINKMODES_NTF notification (diff) | |
download | linux-3d2b847fb99cf2b28aa046e486636e555bc6ed1c.tar.xz linux-3d2b847fb99cf2b28aa046e486636e555bc6ed1c.zip |
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>
Diffstat (limited to 'net/ethtool/Makefile')
-rw-r--r-- | net/ethtool/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ethtool/Makefile b/net/ethtool/Makefile index 8023da6672ce..9a1332fb0cc6 100644 --- a/net/ethtool/Makefile +++ b/net/ethtool/Makefile @@ -4,4 +4,5 @@ obj-y += ioctl.o common.o obj-$(CONFIG_ETHTOOL_NETLINK) += ethtool_nl.o -ethtool_nl-y := netlink.o bitset.o strset.o linkinfo.o linkmodes.o +ethtool_nl-y := netlink.o bitset.o strset.o linkinfo.o linkmodes.o \ + linkstate.o |