Re: [PATCH] (3/4) bridge linkstate handling
From: Stephen Hemminger <hidden>
Date: 2004-07-29 16:31:20
Also in:
bridge
From: Stephen Hemminger <hidden>
Date: 2004-07-29 16:31:20
Also in:
bridge
On 29 Jul 2004 08:12:44 -0400 jamal [off-list ref] wrote:
On Wed, 2004-07-28 at 19:24, Stephen Hemminger wrote:quoted
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 [off-list ref] 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).