netdev
[Top] [All Lists]

Re: [patch] Link state reporting

To: Vojtech Pavlik <vojtech@xxxxxxx>
Subject: Re: [patch] Link state reporting
From: Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx>
Date: Mon, 26 Nov 2001 13:14:38 -0500
Cc: Brad Hards <bhards@xxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, becker@xxxxxxxxx
Organization: MandrakeSoft
References: <3C0234A5.767256DF@xxxxxxxxxxxxxx> <3C02822D.6E103FAD@xxxxxxxxxxxxxxxx> <20011126190319.A27663@xxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
Vojtech Pavlik wrote:
> 
> On Mon, Nov 26, 2001 at 12:55:57PM -0500, Jeff Garzik wrote:
> 
> > There is already two ways to report link state to userspace.  We do not
> > need a third.
> >
> > First, ETHTOOL_GLINK.  Second, netif_carrier_off causes IFF_RUNNING to
> > disappear when the interface is up.
> 
> That's from the ethernet point of view. But if I understand correctly,
> there is no means for the userspace to be notified of a link state
> *change*.

Userspace can be notified if you poll ETHTOOL_GLINK.

If you want notification immediately upon state change, netlink is the
way to do this.  That is the plan for 2.5, but it has not been
implemented yet.  Patches welcome.

-- 
Jeff Garzik      | Only so many songs can be sung
Building 1024    | with two lips, two lungs, and one tongue.
MandrakeSoft     |         - nomeansno


<Prev in Thread] Current Thread [Next in Thread>