[openib-general] [PATCH] OSM vendor layer: In umad_receiver, handle allocating RMPP large MADs from OSM MAD pool

Hal Rosenstock halr at voltaire.com
Mon Aug 29 07:48:29 PDT 2005


Hi Grant,

On Fri, 2005-08-26 at 13:23, Grant Grundler wrote:
> On Fri, Aug 26, 2005 at 12:34:58PM -0400, Hal Rosenstock wrote:
> > -                                         MAD_BLOCK_SIZE, &osm_addr))) {
> > +                                               length > MAD_BLOCK_SIZE ? 
> > +                                                       length : MAD_BLOCK_SIZE,
> > +                                               &osm_addr))) {
> 
> Can "max(length, MAD_BLOCK_SIZE)" be used instead?

Yes; I made that change. There is a MAX macro in complib/cl_math.h.
Thanks.

-- Hal




More information about the general mailing list