3c59x: shorten timer period for slave devices
[ Upstream commit 3013dc0cce ]
Jean Delvare reported bonding on top of 3c59x adapters was not detecting
network cable removal fast enough.
3c59x indeed uses a 60 seconds timer to check link status if carrier is
on, and 5 seconds if carrier is off.
This patch reduces timer period to 5 seconds if device is a bonding
slave.
Reported-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
497f51fc64
commit
d6be19f41a
1 changed files with 1 additions and 1 deletions
|
|
@ -1842,7 +1842,7 @@ vortex_timer(unsigned long data)
|
|||
ok = 1;
|
||||
}
|
||||
|
||||
if (!netif_carrier_ok(dev))
|
||||
if (dev->flags & IFF_SLAVE || !netif_carrier_ok(dev))
|
||||
next_tick = 5*HZ;
|
||||
|
||||
if (vp->medialock)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue