RE: Receive processing stops when dev->poll returns 1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Usha Srinivasan
Date: Thursday, August 5, 2010 - 11:11 am

Stephen,
The min is inside a while loop; it is purely used to limit the number of completions that are retrieved at-a-time.  The outer while loops ensuring that all the completions are handled until budget is reached or there are no completions left. Please look again at the code I sent you.
Usha

-----Original Message-----
From: Stephen Hemminger [mailto:shemminger@vyatta.com] 
Sent: Thursday, August 05, 2010 1:37 PM
To: Usha Srinivasan
Cc: netdev@vger.kernel.org
Subject: Re: Receive processing stops when dev->poll returns 1

On Thu, 5 Aug 2010 11:36:26 -0500
Usha Srinivasan <usha.srinivasan@qlogic.com> wrote:


You need to handle all completions pending in the poll, the code will
not call you back. So this min() is the problem.

-- 

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Receive processing stops when dev-&gt;poll returns 1, Usha Srinivasan, (Thu Aug 5, 7:20 am)
Re: Receive processing stops when dev-&gt;poll returns 1, Stephen Hemminger, (Thu Aug 5, 9:04 am)
RE: Receive processing stops when dev-&gt;poll returns 1, Usha Srinivasan, (Thu Aug 5, 9:11 am)
Re: Receive processing stops when dev-&gt;poll returns 1, Stephen Hemminger, (Thu Aug 5, 9:16 am)
Re: Receive processing stops when dev-&gt;poll returns 1, Stephen Hemminger, (Thu Aug 5, 9:22 am)
RE: Receive processing stops when dev-&gt;poll returns 1, Usha Srinivasan, (Thu Aug 5, 9:36 am)
Re: Receive processing stops when dev-&gt;poll returns 1, Stephen Hemminger, (Thu Aug 5, 10:37 am)
RE: Receive processing stops when dev->poll returns 1, Usha Srinivasan, (Thu Aug 5, 11:11 am)