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>
This commit is contained in:
committed by
David S. Miller
parent
1b1b1847c8
commit
3d2b847fb9
@@ -333,6 +333,7 @@ struct ethnl_request_ops {
|
||||
extern const struct ethnl_request_ops ethnl_strset_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_linkinfo_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_linkmodes_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_linkstate_request_ops;
|
||||
|
||||
int ethnl_set_linkinfo(struct sk_buff *skb, struct genl_info *info);
|
||||
int ethnl_set_linkmodes(struct sk_buff *skb, struct genl_info *info);
|
||||
|
||||
Reference in New Issue
Block a user