[openib-general] Re: Another RMPP related question

Sean Hefty mshefty at ichips.intel.com
Mon May 2 13:13:54 PDT 2005


Hal Rosenstock wrote:

> It seems that when ib_create_send_mad is called, the wr_id is the
> pointer to the ib_mad_send_buf structure and can no longer be used by
> the client. Maybe a way around this is to add another "wr_id" in that
> structure which the client could use in this case for any additional
> context. Never mind: just saw void *context[2] in that structure just
> for precisely what I was looking for here...

The user can set wr_id to something else, as long as they can get back 
to the returned ib_mad_send_buf in order to free it.

But yes, the context fields are there for the user as well...

- Sean



More information about the general mailing list