* Link detection and netlink notification in Linux 2.4
@ 2004-08-27 13:06 Yann Rapaport
2004-08-27 20:00 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yann Rapaport @ 2004-08-27 13:06 UTC (permalink / raw)
To: linux-kernel
Hi all kernel users!
I am currently working on implementing link state
detection with netlink notification on a Linux 2.4.24
kernel.
The first solution that comes to my mind is to add a
call to netdev_state_change() inside the
netif_carrier_on() and netif_carrier_off() functions.
But after reading the list archive ab out it, my
understanding is that it is not possible to call
netdev_state_change() at this level. This seems to be
related being or not inside interrupts.
Could anyone explain this to me?
The right solution seems to be a kernel thread that
looks up the device chain and tests the IFF_RUNNING
flag to decide or not to notify netlink. Couldn't this
set a performance problem?
Testing the ETHTOOL_GLINK flag also seems a good idea
to me. Which one is the most generic?
As I understand it, this feature was one of the aims
of the 2.5 kernel. Is it implemented in 2.6? Would you
advise me any piece of code to have a look at?
Thank you in advance.
--
Yann
Vous manquez despace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Link detection and netlink notification in Linux 2.4
2004-08-27 13:06 Link detection and netlink notification in Linux 2.4 Yann Rapaport
@ 2004-08-27 20:00 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-08-27 20:00 UTC (permalink / raw)
To: Yann Rapaport; +Cc: linux-kernel
On Fri, 27 Aug 2004 15:06:22 +0200 (CEST)
Yann Rapaport <yannusonline@yahoo.fr> wrote:
> As I understand it, this feature was one of the aims
> of the 2.5 kernel. Is it implemented in 2.6?
Yes.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-27 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-27 13:06 Link detection and netlink notification in Linux 2.4 Yann Rapaport
2004-08-27 20:00 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome