From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Date: Tue, 11 Aug 2009 22:17:47 +0000 Subject: Re: link up and down Message-Id: <1250029067.30166.34.camel@localhost.localdomain> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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