linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: link up and down
Date: Wed, 12 Aug 2009 18:20:09 +0000	[thread overview]
Message-ID: <20090812112009.0d33e8bd@nehalam> (raw)
In-Reply-To: <cfeab66d0908110935v38566a5awc48edbffd62053f@mail.gmail.com>

On Tue, 11 Aug 2009 15:17:47 -0700
Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Greg,
> 
> > > the linux kernel is running on an embedded box ... so if i can achieve
> > > this using hotplug2 , i can save a lot of flash by not intstalling
> > > ethtool ..
> > > is there any way
> > 
> > You are really using hotplug2 for a device?  Are you insane?  That's
> > very old, unsupported, and buggy code that was a totally bad idea when I
> > wrote it.
> > 
> > Please do not use it, it will break and cause bad things to happen.
> > 
> > And no, there are no hotplug events for link up/down, use ethtool like
> > it is designed for.
> 
> actually there was a patch for KOBJ_CHANGE events when network interface
> flags change, but it never got merged upstream.
> 
> Also just using RTNL and listening for IFF_LOWER_UP is way simpler than
> going through uevents.

Have you looked at netplugd?


  parent reply	other threads:[~2009-08-12 18:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 16:47 link up and down ratheesh k
2009-08-11 16:52 ` Greg KH
2009-08-11 17:27 ` Marco d'Itri
2009-08-11 17:33 ` ratheesh k
2009-08-11 17:45 ` Greg KH
2009-08-11 22:17 ` Marcel Holtmann
2009-08-12 18:20 ` Stephen Hemminger [this message]
2009-08-14  5:39 ` ratheesh k

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=20090812112009.0d33e8bd@nehalam \
    --to=shemminger@linux-foundation.org \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).