Re: [patch net-next-2.6 1/2] net: allow to change carrier via sysfs
From: Michał Mirosław <hidden>
Date: 2011-08-31 08:34:11
From: Michał Mirosław <hidden>
Date: 2011-08-31 08:34:11
W dniu 31 sierpnia 2011 10:26 użytkownik Jiri Pirko [off-list ref] napisał:
Tue, Aug 30, 2011 at 08:11:37PM CEST, mirqus@gmail.com wrote:quoted
2011/8/30 Jiri Pirko [off-list ref]:quoted
Allow to write to "carrier" attribute. Devices may implement ndo_change_carrier callback to allow changing carrier from userspace.Do you expect drivers using implementation different than just calling netif_carrier_on/off? Or is it supposed to also e.g. power down PHYs?Yes, generally it can be used also for en/disable phy, for testing purposes if hw and driver would support it.
I'd like to see this working for GRE tunnel devices (for keepalive daemon to be able to indicate to routing daemons whether tunnel is really working) - implementation would be identical to dummy's case. Should I prepare a patch or can I leave it to you? Best Regards, Michał Mirosław