diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2020-01-26 23:11:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-27 11:31:36 +0100 |
commit | 51ea22b04ea0c210f9ce87b8a600965dbe476bc2 (patch) | |
tree | 278820e9b0c6c519e55f852145bd33125f45f26d /net/ethtool/strset.c | |
parent | ethtool: add DEBUG_NTF notification (diff) | |
download | linux-51ea22b04ea0c210f9ce87b8a600965dbe476bc2.tar.xz linux-51ea22b04ea0c210f9ce87b8a600965dbe476bc2.zip |
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/strset.c')
-rw-r--r-- | net/ethtool/strset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ethtool/strset.c b/net/ethtool/strset.c index 7a45c25355b8..8e5911887b4c 100644 --- a/net/ethtool/strset.c +++ b/net/ethtool/strset.c @@ -55,6 +55,11 @@ static const struct strset_info info_template[] = { .count = NETIF_MSG_CLASS_COUNT, .strings = netif_msg_class_names, }, + [ETH_SS_WOL_MODES] = { + .per_dev = false, + .count = WOL_MODE_COUNT, + .strings = wol_mode_names, + }, }; struct strset_req_info { |