[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <97949e3e0912160923p3353fe97vdc42a20597dec7f4@mail.gmail.com>
Date: Wed, 16 Dec 2009 09:23:58 -0800
From: Laurent Chavey <chavey@...gle.com>
To: leitao@...ux.vnet.ibm.com
Cc: mchan@...adcom.com, netdev@...r.kernel.org
Subject: Re: [PATCH] bnx2: reset_task is crashing the kernel. Fixing it.
On Wed, Dec 16, 2009 at 4:09 AM, <leitao@...ux.vnet.ibm.com> wrote:
> Acutally if a BNX2 interface gets time outs, the reset_task is
> called to restart the interface. But, the NIC is turned off with
> some packages to transmitt, and this causes the function
s/packages/packets/
s/transmitt/transmit/
> napi_disable() to loop forever, crashing the kernel.
>
> Signed-off-by: Breno Leitao <leitao@...ux.vnet.ibm.com>
> ---
> drivers/net/bnx2.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
> index f81f082..40c883b 100644
> --- a/drivers/net/bnx2.c
> +++ b/drivers/net/bnx2.c
> @@ -652,8 +652,6 @@ bnx2_napi_enable(struct bnx2 *bp)
> static void
> bnx2_netif_stop(struct bnx2 *bp)
> {
> - bnx2_cnic_stop(bp);
> - bnx2_disable_int_sync(bp);
> if (netif_running(bp->dev)) {
> int i;
>
> @@ -667,6 +665,8 @@ bnx2_netif_stop(struct bnx2 *bp)
> txq->trans_start = jiffies;
> }
> }
> + bnx2_cnic_stop(bp);
> + bnx2_disable_int_sync(bp);
> }
>
> static void
> --
> 1.6.0.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists