]> git.neil.brown.name Git - history.git/commit
[BRIDGE]: linkstate handling
authorStephen Hemminger <shemminger@osdl.org>
Thu, 29 Jul 2004 07:40:24 +0000 (00:40 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 29 Jul 2004 07:40:24 +0000 (00:40 -0700)
commit87dd39edb1d4537f13562b18da0f34cab711633e
tree2fdd7e8ece579d76b159b0308dda5a5be7a17d8a
parent4fcf9675f4b52e4d1e0d451335e39e83111777d4
[BRIDGE]: linkstate handling

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@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.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
net/bridge/br_if.c
net/bridge/br_notify.c
net/bridge/br_stp_if.c