[Bridge] Re: [PATCH] (3/4) bridge linkstate handling

Stephen Hemminger shemminger at osdl.org
Thu Jul 29 09:31:20 PDT 2004

On 29 Jul 2004 08:12:44 -0400
jamal <hadi at cyberus.ca> wrote:

> On Wed, 2004-07-28 at 19:24, Stephen Hemminger wrote:
> > This makes bridge port status reflect both the state of the interface
> > from software (up/down) and the carrier.  It makes STP handle link failure
> > (cable breakage, etc).  The original concept comes from a 
> > Mark Ruijter <bridge at siennax.com> who implemented it differently.
> > My way is simpler and requires no polling.
> > 
> > Obviously, this link state detection will only work if the network card
> > handles the events properly.
> > 
> nice. Does this entrench STP further in the kernel?
> Still planning to move it out to user space?

The same logic would apply in user space, it would just use the netlink
events that come from netlink messages (RTM_NEWLINK) rather than notifier chain (NETDEV_CHANGE).

More information about the Bridge mailing list