]> git.baikalelectronics.ru Git - kernel.git/commit
[BRIDGE]: handle speed detection after carrier changes
authorStephen Hemminger <shemminger@osdl.org>
Tue, 20 Dec 2005 23:19:51 +0000 (15:19 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 3 Jan 2006 21:11:01 +0000 (13:11 -0800)
commit747bf50b66489c44b7c1f32d3ea13322c3649c66
tree3481cdce9a8ba28ba8ad26d0ed49151c1d08f4b7
parentebef3143b574381d638cb8fa9b25c0a55902d3f0
[BRIDGE]: handle speed detection after carrier changes

Speed of a interface may not be available until carrier
is detected in the case of autonegotiation. To get the correct value
we need to recheck speed after carrier event.  But the check needs to
be done in a context that is similar to normal ethtool interface (can sleep).

Also, delay check for 1ms to try avoid any carrier bounce transitions.

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