[openib-general] [PATCH] RDMA/cma: document error flow of rdma_accept

Sean Hefty mshefty at ichips.intel.com
Wed Sep 13 09:30:26 PDT 2006


Committed to svn 9461.  Roland, can you also pull into 2.6.19?

Signed-off-by: Sean Hefty <sean.hefty at intel.com>

Or Gerlitz wrote:
> Document the reject sending and modifying qp to error done in rdma_accept
> 
> Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
> 
> diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h
> index 402c63d..f932c16 100644
> --- a/include/rdma/rdma_cm.h
> +++ b/include/rdma/rdma_cm.h
> @@ -237,6 +237,10 @@ int rdma_listen(struct rdma_cm_id *id, i
>   * Typically, this routine is only called by the listener to accept a connection
>   * request.  It must also be called on the active side of a connection if the
>   * user is performing their own QP transitions.
> + *
> + * In the case of error, a reject message is sent to the remote side and the
> + * state of the qp associated with the id is modified to error, such that any
> + * previously posted receive buffers would be flushed.
>   */
>  int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);




More information about the general mailing list