diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-18 17:31:24 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-22 14:41:23 -0400 |
commit | 19e57c4e6dc6b82a3204b801f4c5f27c7d007559 (patch) | |
tree | 24b25dd20cb1cbdb329926a774a2395b5a2bb3b1 /include/net/dsa.h | |
parent | 8cfa94984c9cfdd5f5af2af4f161176cb7256d44 (diff) |
net: dsa: add {get, set}_wol callbacks to slave devices
Allow switch drivers to implement per-port Wake-on-LAN getter and
setters.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 846dce4abaa5..d8054fb4a4df 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -212,6 +212,14 @@ struct dsa_switch_driver { int (*get_sset_count)(struct dsa_switch *ds); /* + * ethtool Wake-on-LAN + */ + void (*get_wol)(struct dsa_switch *ds, int port, + struct ethtool_wolinfo *w); + int (*set_wol)(struct dsa_switch *ds, int port, + struct ethtool_wolinfo *w); + + /* * Suspend and resume */ int (*suspend)(struct dsa_switch *ds); |