| To: | Colin Leroy <colin@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Prevent netpoll hanging when link is down |
| From: | Matt Mackall <mpm@xxxxxxxxxxx> |
| Date: | Wed, 6 Oct 2004 16:43:22 -0500 |
| Cc: | Andrew Morton <akpm@xxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <20041006232544.53615761@xxxxxxxxxxxxxxx> |
| References: | <20041006232544.53615761@xxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.28i |
On Wed, Oct 06, 2004 at 11:25:44PM +0200, Colin Leroy wrote:
> Hi,
>
> this patch fixes a (quite big) problem with netpoll: when link is down,
> it hangs.
>
> This patch fixes it. Tested with no carrier (no more hang) and with
> carrier (same behaviour as before).
[cc:ed to netdev]
Well this doesn't look unreasonable, but I haven't run into it with
the NICs I've tested. Nor have I seen this reported before. Which NICs
is this with?
> - if(!np || !np->dev || !netif_running(np->dev)) {
> + if(!np || !np->dev || !netif_running(np->dev) ||
> + !netif_carrier_ok(np->dev)) {
I wonder if netif_running is redundant if netif_carrier_ok.
--
Mathematics is the supreme nostalgia of our time.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 2.6.7 tulip performance (with NAPI), Ben Greear |
|---|---|
| Next by Date: | PATCH: [LLC] set mac.raw if tr_source_route is called, Arnaldo Carvalho de Melo |
| Previous by Thread: | RE: Patch submission for S2io Xframe driver to 2.6 kernel, Ravinandan Arakali |
| Next by Thread: | Re: [PATCH] Prevent netpoll hanging when link is down, Colin Leroy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |