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>
This commit is contained in:
committed by
David S. Miller
parent
8cfa94984c
commit
19e57c4e6d
@ -211,6 +211,14 @@ struct dsa_switch_driver {
|
||||
int port, uint64_t *data);
|
||||
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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user