diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2020-01-27 01:11:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-27 13:31:36 +0300 |
commit | 51ea22b04ea0c210f9ce87b8a600965dbe476bc2 (patch) | |
tree | 278820e9b0c6c519e55f852145bd33125f45f26d /net/ethtool/common.h | |
parent | 0bda7af39d2ba6ef83bd18e26bcb027f1630004e (diff) | |
download | linux-51ea22b04ea0c210f9ce87b8a600965dbe476bc2.tar.xz |
ethtool: provide WoL settings with WOL_GET request
Implement WOL_GET request to get wake-on-lan settings for a device,
traditionally available via ETHTOOL_GWOL ioctl request.
As part of the implementation, provide symbolic names for wake-on-line
modes as ETH_SS_WOL_MODES string set.
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/common.h')
-rw-r--r-- | net/ethtool/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ethtool/common.h b/net/ethtool/common.h index 064c5c3aa990..40ba74e0b9bb 100644 --- a/net/ethtool/common.h +++ b/net/ethtool/common.h @@ -20,6 +20,7 @@ extern const char phy_tunable_strings[__ETHTOOL_PHY_TUNABLE_COUNT][ETH_GSTRING_LEN]; extern const char link_mode_names[][ETH_GSTRING_LEN]; extern const char netif_msg_class_names[][ETH_GSTRING_LEN]; +extern const char wol_mode_names[][ETH_GSTRING_LEN]; int __ethtool_get_link(struct net_device *dev); |