From: Matt Mackall <mpm@selenic.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@oss.sgi.com, Jeff Moyer <jmoyer@redhat.com>
Subject: [PATCH 1/6] netpoll: shorten carrier detect timeout
Date: Thu, 17 Feb 2005 23:25:18 -0600 [thread overview]
Message-ID: <2.378217222@selenic.com> (raw)
In-Reply-To: <1.378217222@selenic.com>
Shorten carrier detect timeout to 4 seconds.
Signed-off-by: Matt Mackall <mpm@selenic.com>
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();
next prev parent reply other threads:[~2005-02-18 5:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-18 5:25 [PATCH 0/6] netpoll: recursion fixes, queueing, and cleanups Matt Mackall
2005-02-18 5:25 ` Matt Mackall [this message]
2005-02-18 5:25 ` [PATCH 2/6] netpoll: filter inlines Matt Mackall
2005-02-18 5:25 ` [PATCH 3/6] netpoll: add netpoll point to net_device Matt Mackall
2005-02-18 5:25 ` [PATCH 4/6] netpoll: fix ->poll() locking Matt Mackall
2005-02-18 5:25 ` [PATCH 5/6] netpoll: add optional dropping and queueing support Matt Mackall
2005-02-18 5:25 ` [PATCH 6/6] netpoll: handle xmit_lock recursion similarly Matt Mackall
2005-03-23 2:33 ` [PATCH 0/6] netpoll: recursion fixes, queueing, and cleanups David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2.378217222@selenic.com \
--to=mpm@selenic.com \
--cc=davem@davemloft.net \
--cc=jmoyer@redhat.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).