tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: BNX driver problem when mbuf clusters run out

That won't work in this case.  If bnx_get_buf succeeds in getting an mbuf 
cluster, it then puts it in the rx ring.  If we haven't removed the mbuf first, 
there will be no place to put the new mbuf.


On Apr 19, 2012, at 7:43 PM, Joerg Sonnenberger wrote:

> On Thu, Apr 19, 2012 at 07:39:33PM -0400, Beverly Schwartz wrote:
>> Note, there is another condition in which we recycle mbufs,
>> which suffers from the same problem.
> The easiest approach for this is generally to invert the order. *First*
> try to obtain an mbuf for the list. If that fails, just drop the newly
> received packet. That avoids most of the complications.
> Joerg

Home | Main Index | Thread Index | Old Index