* WOL with flex filters, reflecting it in /sys
@ 2009-10-01 20:55 Leisner, Martin
2009-10-01 21:22 ` David Miller
2009-10-01 21:23 ` [linux-pm] " Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Leisner, Martin @ 2009-10-01 20:55 UTC (permalink / raw)
To: linux-pm, netdev; +Cc: martyleisner
I'm looking to extend the work of Mitch Williams to support flexible
filters.
(http://www.mail-archive.com/netdev@vger.kernel.org/msg60332.html}
Looking at the problem, would it be a good idea to reflect WOL
characteristics in the /sys filesystem (instead of requiring ethtool to
set them)?
Seems straightforward and easy enough.
I know the VIA Rhinefet and Intel e1000 support filters -- and some
freescale
seems to have some front end that support filters...and we've also
implemented filters in software...
What I'm thinking of is a hierarchy in /sys/classes/net/<device>/wol/
wol/
/flex-filters
/0
data -- hex data to match
mask -- string of 1 and 0 -- if 1, the data is valid in the
bit
position
...
/n
data
mask
/wake_up_packet
/traditional --r/w (0/1)
/magic_packet
/arp
/unicast
/multicast
/broadcast
/phy
marty
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: WOL with flex filters, reflecting it in /sys
2009-10-01 20:55 WOL with flex filters, reflecting it in /sys Leisner, Martin
@ 2009-10-01 21:22 ` David Miller
2009-10-01 21:23 ` [linux-pm] " Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2009-10-01 21:22 UTC (permalink / raw)
To: Martin.Leisner; +Cc: linux-pm, netdev, martyleisner
From: "Leisner, Martin" <Martin.Leisner@xerox.com>
Date: Thu, 1 Oct 2009 13:55:03 -0700
> What I'm thinking of is a hierarchy in /sys/classes/net/<device>/wol/
>
> wol/
> /flex-filters
> /0
> data -- hex data to match
> mask -- string of 1 and 0 -- if 1, the data is valid in the
> bit
> position
> ...
> /n
> data
> mask
> /wake_up_packet
> /traditional --r/w (0/1)
> /magic_packet
> /arp
> /unicast
> /multicast
> /broadcast
> /phy
That's a pretty hairy interface for users to learn. Are you
really sure this is nicer than adding this facility to ethtool? :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-pm] WOL with flex filters, reflecting it in /sys
2009-10-01 20:55 WOL with flex filters, reflecting it in /sys Leisner, Martin
2009-10-01 21:22 ` David Miller
@ 2009-10-01 21:23 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2009-10-01 21:23 UTC (permalink / raw)
To: linux-pm; +Cc: Leisner, Martin, netdev, martyleisner
On Thursday 01 October 2009, Leisner, Martin wrote:
> I'm looking to extend the work of Mitch Williams to support flexible
> filters.
> (http://www.mail-archive.com/netdev@vger.kernel.org/msg60332.html}
>
> Looking at the problem, would it be a good idea to reflect WOL
> characteristics in the /sys filesystem (instead of requiring ethtool to
> set them)?
>
> Seems straightforward and easy enough.
I'm not sure about that.
The supported WoL settings seem to depend on the driver and whether WoL is
going to work also depends on the device's power/wakeup setting.
Thanks,
Rafael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-01 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 20:55 WOL with flex filters, reflecting it in /sys Leisner, Martin
2009-10-01 21:22 ` David Miller
2009-10-01 21:23 ` [linux-pm] " Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).