浏览代码

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 <ogerlitz@voltaire.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Or Gerlitz 18 年之前
父节点
当前提交
951f7fc137
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/rdma/rdma_cm.h

+ 4 - 0
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
  * 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
  * request.  It must also be called on the active side of a connection if the
  * user is performing their own QP transitions.
  * 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);
 int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);