[openib-general] [PATCH] ib_mad: Implement ib_free_recv_mad routine

Sean Hefty mshefty at ichips.intel.com
Wed Sep 15 14:45:41 PDT 2004


On Wed, 15 Sep 2004 17:42:05 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> On Wed, 2004-09-15 at 17:33, Sean Hefty wrote:
> > On Wed, 15 Sep 2004 17:03:48 -0400
> > Hal Rosenstock <halr at voltaire.com> wrote:
> > 
> > I think that the optimization works even with RMPP.  Assuming that 
> > most receives are for a one MAD, it allocates a single structure, 
> > rather than two that then need to be chained together.  For RMPP, 
> > you can still have more recv_buf's chained together.  It's just 
> > that the first recv_buf is included with the mad_recv_wc, 
> > rather than being linked off of it.
> 
> OK. It is probably worth the extra memory to optimize for the single
> buffer case.

Actually, this change should decrease memory usage -- saves a whole pointer.



More information about the general mailing list