From: Marcel Holtmann <marcel@holtmann.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: link up and down
Date: Tue, 11 Aug 2009 22:17:47 +0000 [thread overview]
Message-ID: <1250029067.30166.34.camel@localhost.localdomain> (raw)
In-Reply-To: <cfeab66d0908110935v38566a5awc48edbffd62053f@mail.gmail.com>
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.
Regards
Marcel
next prev parent reply other threads:[~2009-08-11 22:17 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 [this message]
2009-08-12 18:20 ` Stephen Hemminger
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=1250029067.30166.34.camel@localhost.localdomain \
--to=marcel@holtmann.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.