From: Bart Van Assche Date: Wed, 9 Dec 2009 22:20:04 +0000 (-0800) Subject: IB: Clarify the documentation of ib_post_send() X-Git-Tag: v2.6.33-rc1~60^2^8~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=55464d461bdcffc4422aebfb750eacf99e3c0f27;p=~emulex%2Finfiniband.git IB: Clarify the documentation of ib_post_send() Clarify the behavior of ib_post_send() when a list of work requests is passed in and an immediate error is returned. Signed-off-by: Bart Van Assche Signed-off-by: Roland Dreier --- diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index c179318edd9..09509edb1c5 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -1425,6 +1425,11 @@ int ib_destroy_qp(struct ib_qp *qp); * @send_wr: A list of work requests to post on the send queue. * @bad_send_wr: On an immediate failure, this parameter will reference * the work request that failed to be posted on the QP. + * + * While IBA Vol. 1 section 11.4.1.1 specifies that if an immediate + * error is returned, the QP state shall not be affected, + * ib_post_send() will return an immediate error after queueing any + * earlier work requests in the list. */ static inline int ib_post_send(struct ib_qp *qp, struct ib_send_wr *send_wr,