From: Or Gerlitz Date: Fri, 22 Sep 2006 22:22:54 +0000 (-0700) Subject: RDMA/cma: Document rdma_accept() error handling X-Git-Tag: v2.6.19-rc1~1293^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=951f7fc1372da3d826b1d975b3cc5e3db92af5d0;p=linux-2.6 RDMA/cma: Document rdma_accept() error handling Document the reject sending and modifying QP to error done in rdma_accept(). Signed-off-by: Or Gerlitz Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h index 1566be568a..deb5a0a4ce 100644 --- a/include/rdma/rdma_cm.h +++ b/include/rdma/rdma_cm.h @@ -245,6 +245,10 @@ int rdma_listen(struct rdma_cm_id *id, int backlog); * 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);