[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090327.155038.247597952.davem@davemloft.net>
Date: Fri, 27 Mar 2009 15:50:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: therbert@...gle.com
Cc: herbert@...dor.apana.org.au, blaschka@...ux.vnet.ibm.com,
netdev@...r.kernel.org
Subject: Re: GRO with non napi driver: BUG in __napi_complete
From: Tom Herbert <therbert@...gle.com>
Date: Fri, 27 Mar 2009 12:05:30 -0700
> > On the legacy netif_rx path, I incorrectly tried to optimise
> >
> > the napi_complete call by using __napi_complete before we reenable
> > IRQs. This simply doesn't work since we need to flush the held
> > GRO packets first.
> >
> > This patch fixes it by doing the obvious thing of reenabling
> > IRQs first and then calling napi_complete.
>
> Does this fix generate a race condition for a non-NAPI device? If
> netif_rx runs immediately after local_irq_enable it would queue a
> packet on the backlog queue and try to schedule napi (the latter has
> no effect because napi has not completed). On return from interrupt,
> napi_complete is done leaving a packet in the input queue but napi is
> not scheduled to process it.
Yes we know this version of Herbert's patch has that problem,
read the rest of the thread and subsequent versions of the fix.
--
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