[openib-general] [PATCH] review for new MAD APIs

Hal Rosenstock halr at voltaire.com
Wed Sep 15 04:54:08 PDT 2004


On Mon, 2004-09-13 at 18:16, Sean Hefty wrote:
> The following patch adds two new APIs to better support zero-copy receives on MADs.

> The second call returns the receive MAD buffers and chained completion structures 
> to the access layer, where they were allocated.
> 
> Comments?

> +/**
> + * ib_free_recv_mad - Returns data buffers used to receive a MAD to the
> + *   access layer.
> + * @mad_recv_wc - Work completion information for a received MAD.
> + *
> + * Clients receiving MADs through their ib_mad_recv_handler must call this
> + * routine to return the work completion buffers to the access layer.
> + */
> +void ib_free_recv_mad(struct ib_mad_recv_wc *mad_recv_wc);
> +
> +/**

Either the client needs to explictly do this or the MAD layer would
assume this is the case upon return from the receive callback. 

They both have their downsides so I'm not sure which is better.

-- Hal




More information about the general mailing list