summaryrefslogtreecommitdiffstats
path: root/net/ethtool/linkstate.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ethtool: provide link state with LINKSTATE_GET requestMichal Kubecek2019-12-281-0/+74
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>