mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Yann Rapaport" <yannusonline@yahoo.fr>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Link detection and netlink notification in Linux 2.4
Date: Fri, 27 Aug 2004 15:06:22 +0200 (CEST)	[thread overview]
Message-ID: <20040827130622.62816.qmail@web25210.mail.ukl.yahoo.com> (raw)

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 d’espace 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

             reply	other threads:[~2004-08-27 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27 13:06 Yann Rapaport [this message]
2004-08-27 20:00 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040827130622.62816.qmail@web25210.mail.ukl.yahoo.com \
    --to=yannusonline@yahoo.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®