* Re: link up and down
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
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2009-08-11 16:52 UTC (permalink / raw)
To: linux-hotplug
On Tue, Aug 11, 2009 at 10:05:49PM +0530, ratheesh k wrote:
> I have hotplug2 on my 2.6.22 kernel ... I would like to get ethernet
> plug in and plug out events .
Use ethtool, it provides this information.
good luck,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: link up and down
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
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Marco d'Itri @ 2009-08-11 17:27 UTC (permalink / raw)
To: linux-hotplug
On Aug 11, ratheesh k <ratheesh.ksz@gmail.com> wrote:
> 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
No.
--
ciao,
Marco
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: link up and down
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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ratheesh k @ 2009-08-11 17:33 UTC (permalink / raw)
To: linux-hotplug
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
On Tue, Aug 11, 2009 at 10:22 PM, Greg KH<greg@kroah.com> wrote:
> On Tue, Aug 11, 2009 at 10:05:49PM +0530, ratheesh k wrote:
>> I have hotplug2 on my 2.6.22 kernel ... I would like to get ethernet
>> plug in and plug out events .
>
> Use ethtool, it provides this information.
>
> good luck,
>
> greg k-h
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: link up and down
2009-08-11 16:47 link up and down ratheesh k
` (2 preceding siblings ...)
2009-08-11 17:33 ` ratheesh k
@ 2009-08-11 17:45 ` Greg KH
2009-08-11 22:17 ` Marcel Holtmann
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2009-08-11 17:45 UTC (permalink / raw)
To: linux-hotplug
On Tue, Aug 11, 2009 at 10:51:47PM +0530, ratheesh k wrote:
> 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.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: link up and down
2009-08-11 16:47 link up and down ratheesh k
` (3 preceding siblings ...)
2009-08-11 17:45 ` Greg KH
@ 2009-08-11 22:17 ` Marcel Holtmann
2009-08-12 18:20 ` Stephen Hemminger
2009-08-14 5:39 ` ratheesh k
6 siblings, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2009-08-11 22:17 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: link up and down
2009-08-11 16:47 link up and down ratheesh k
` (4 preceding siblings ...)
2009-08-11 22:17 ` Marcel Holtmann
@ 2009-08-12 18:20 ` Stephen Hemminger
2009-08-14 5:39 ` ratheesh k
6 siblings, 0 replies; 8+ messages in thread
From: Stephen Hemminger @ 2009-08-12 18:20 UTC (permalink / raw)
To: linux-hotplug
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?
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: link up and down
2009-08-11 16:47 link up and down ratheesh k
` (5 preceding siblings ...)
2009-08-12 18:20 ` Stephen Hemminger
@ 2009-08-14 5:39 ` ratheesh k
6 siblings, 0 replies; 8+ messages in thread
From: ratheesh k @ 2009-08-14 5:39 UTC (permalink / raw)
To: linux-hotplug
i wrote a code using netlink socket to listen events ...... Since i
am integrating all in an embedded device , it will be good if i can
achieve the same with hotplug ... Thanks a lot ..
On Wed, Aug 12, 2009 at 11:50 PM, Stephen
Hemminger<shemminger@linux-foundation.org> wrote:
> 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?
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 8+ messages in thread