summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.9/0020-3c59x-shorten-timer-period-for-slave-devices.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.9/0020-3c59x-shorten-timer-period-for-slave-devices.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.9/0020-3c59x-shorten-timer-period-for-slave-devices.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.9/0020-3c59x-shorten-timer-period-for-slave-devices.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.9/0020-3c59x-shorten-timer-period-for-slave-devices.patch
new file mode 100644
index 00000000..57ee5c2b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.9/0020-3c59x-shorten-timer-period-for-slave-devices.patch
@@ -0,0 +1,42 @@
1From 96dd4ee6793dd443256eda40dd38fa3e84a02c89 Mon Sep 17 00:00:00 2001
2From: Eric Dumazet <eric.dumazet@gmail.com>
3Date: Tue, 14 Feb 2012 10:27:09 +0000
4Subject: [PATCH 20/73] 3c59x: shorten timer period for slave devices
5
6[ Upstream commit 3013dc0cceb9baaf25d5624034eeaa259bf99004 ]
7
8Jean Delvare reported bonding on top of 3c59x adapters was not detecting
9network cable removal fast enough.
10
113c59x indeed uses a 60 seconds timer to check link status if carrier is
12on, and 5 seconds if carrier is off.
13
14This patch reduces timer period to 5 seconds if device is a bonding
15slave.
16
17Reported-by: Jean Delvare <jdelvare@suse.de>
18Acked-by: Jean Delvare <jdelvare@suse.de>
19Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
20Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
21Signed-off-by: David S. Miller <davem@davemloft.net>
22Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23---
24 drivers/net/ethernet/3com/3c59x.c | 2 +-
25 1 files changed, 1 insertions(+), 1 deletions(-)
26
27diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c
28index b42c06b..e0c5529 100644
29--- a/drivers/net/ethernet/3com/3c59x.c
30+++ b/drivers/net/ethernet/3com/3c59x.c
31@@ -1842,7 +1842,7 @@ vortex_timer(unsigned long data)
32 ok = 1;
33 }
34
35- if (!netif_carrier_ok(dev))
36+ if (dev->flags & IFF_SLAVE || !netif_carrier_ok(dev))
37 next_tick = 5*HZ;
38
39 if (vp->medialock)
40--
411.7.7.4
42