Re: [net-next PATCH 2/6] enic: Bug fix: try harder to fill Rx ring on skb allocation failures

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Scott Feldman
Date: Saturday, December 19, 2009 - 6:51 pm

On 12/19/09 2:41 AM, "Simon Horman" <horms@verge.net.au> wrote:


Sorry Simon, I replied wrongly on this one.  The code only cares if _all_
allocations failed (i.e. The ring is empty), and takes the err path.  Since
nothing was allocated, the err path has nothing to cleanup.

If at lease one skb was allocated, then we don't go down the err path, even
if not all of the allocations succeeded.  Bottom line is we only need one
skb on the ring to get the ball rolling.  If we start out with a full
rings-worth of skbs (the expected case), then that's even better.

-scott

--
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:
Re: [net-next PATCH 2/6] enic: Bug fix: try harder to fill ..., Scott Feldman, (Sat Dec 19, 6:51 pm)