]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: cosmetics initialize ibv_send_wr* var
authorChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 27 Jun 2019 05:19:58 +0000 (13:19 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 03:35:55 +0000 (11:35 +0800)
commit60a87c9db99fceda9f6d4efee46b9f06175bcec0
tree865d1d3cbac6893d1d4e99de43334cca63a7515b
parent70785061077d3c7d3692b400b4dfabda5a8f86bc
msg/async/rdma: cosmetics initialize ibv_send_wr* var

API usage:
int ibv_post_send(struct ibv_qp *qp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr)
Input Parameters:
   qp struct ibv_qp from ibv_create_qp
   wr first work request (WR)
Output Parameters:
   bad_wr pointer to first rejected WR
Return Value:
   0 on success, -1 on error.
   If the call fails, errno will be set to indicate the reason for the failure.
To avoid wrong checking return value, it's better to initialize the
value to be nullptr.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/RDMAConnectedSocketImpl.cc