diff options
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.patch | 42 |
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 @@ | |||
1 | From 96dd4ee6793dd443256eda40dd38fa3e84a02c89 Mon Sep 17 00:00:00 2001 | ||
2 | From: Eric Dumazet <eric.dumazet@gmail.com> | ||
3 | Date: Tue, 14 Feb 2012 10:27:09 +0000 | ||
4 | Subject: [PATCH 20/73] 3c59x: shorten timer period for slave devices | ||
5 | |||
6 | [ Upstream commit 3013dc0cceb9baaf25d5624034eeaa259bf99004 ] | ||
7 | |||
8 | Jean Delvare reported bonding on top of 3c59x adapters was not detecting | ||
9 | network cable removal fast enough. | ||
10 | |||
11 | 3c59x indeed uses a 60 seconds timer to check link status if carrier is | ||
12 | on, and 5 seconds if carrier is off. | ||
13 | |||
14 | This patch reduces timer period to 5 seconds if device is a bonding | ||
15 | slave. | ||
16 | |||
17 | Reported-by: Jean Delvare <jdelvare@suse.de> | ||
18 | Acked-by: Jean Delvare <jdelvare@suse.de> | ||
19 | Acked-by: Steffen Klassert <steffen.klassert@secunet.com> | ||
20 | Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> | ||
21 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
22 | Signed-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 | |||
27 | diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c | ||
28 | index 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 | -- | ||
41 | 1.7.7.4 | ||
42 | |||