[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)
commit4433f420e57afae0ab308b1e2b979f09c86bc115
tree3481cdce9a8ba28ba8ad26d0ed49151c1d08f4b7
parent4505a3ef720845b5db3ddb440de13cd4800fd508
[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