| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/6] netpoll: shorten carrier detect timeout |
| From: | Matt Mackall <mpm@xxxxxxxxxxx> |
| Date: | Thu, 17 Feb 2005 23:25:18 -0600 |
| Cc: | netdev@xxxxxxxxxxx, Jeff Moyer <jmoyer@xxxxxxxxxx> |
| In-reply-to: | <1.378217222@xxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Shorten carrier detect timeout to 4 seconds.
Signed-off-by: Matt Mackall <mpm@xxxxxxxxxxx>
Index: tiny-new/net/core/netpoll.c
===================================================================
--- tiny-new.orig/net/core/netpoll.c 2004-11-17 00:05:28.000000000 -0800
+++ tiny-new/net/core/netpoll.c 2004-12-02 11:51:15.775256063 -0800
@@ -584,7 +584,7 @@
rtnl_shunlock();
atleast = jiffies + HZ/10;
- atmost = jiffies + 10*HZ;
+ atmost = jiffies + 4*HZ;
while (!netif_carrier_ok(ndev)) {
if (time_after(jiffies, atmost)) {
printk(KERN_NOTICE
@@ -597,7 +597,7 @@
if (time_before(jiffies, atleast)) {
printk(KERN_NOTICE "%s: carrier detect appears flaky,"
- " waiting 10 seconds\n",
+ " waiting 4 seconds\n",
np->name);
while (time_before(jiffies, atmost))
cond_resched();
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/6] netpoll: recursion fixes, queueing, and cleanups, Matt Mackall |
|---|---|
| Next by Date: | [PATCH 5/6] netpoll: add optional dropping and queueing support, Matt Mackall |
| Previous by Thread: | [PATCH 0/6] netpoll: recursion fixes, queueing, and cleanups, Matt Mackall |
| Next by Thread: | [PATCH 2/6] netpoll: filter inlines, Matt Mackall |
| Indexes: | [Date] [Thread] [Top] [All Lists] |