[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100401.184345.85529643.davem@davemloft.net>
Date: Thu, 01 Apr 2010 18:43:45 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: sergey.senozhatsky@...il.com, oleg@...hat.com,
romieu@...zoreil.com, netdev@...r.kernel.org
Subject: Re: [PATCH] r8169: Fix rtl8169_rx_interrupt()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 31 Mar 2010 14:08:31 +0200
> [PATCH net-next-2.6] r8169: Fix rtl8169_rx_interrupt()
>
> In case a reset is performed, rtl8169_rx_interrupt() is called from
> process context instead of softirq context. Special care must be taken
> to call appropriate network core services (netif_rx() instead of
> netif_receive_skb()). VLAN handling also corrected.
>
> Reported-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
> Tested-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
> Diagnosed-by: Oleg Nesterov <oleg@...hat.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied to net-next-2.6, but:
> +/*
> + * Warning : rtl8169_rx_interrupt() might be called :
> + * 1) from NAPI (softirq) context
> + * (polling = 1 : we should call netif_receive_skb())
> + * 2) from process context (rtl8169_reset_task())
> + * (polling = 0 : we must call netif_rx() instead)
> + */
^^^^^^^^
Trailing whitespace I had to delete.
--
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