提交 fbf1795c 编写于 作者: L Leon Romanovsky 提交者: Doug Ledford

RDMA/pvrdma: Properly annotate QP states

QP states provided by core layer are converted to enum ib_qp_state
and better to use internal variable in that type instead of int.
Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 88de869b
...@@ -489,7 +489,7 @@ int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ...@@ -489,7 +489,7 @@ int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
union pvrdma_cmd_req req; union pvrdma_cmd_req req;
union pvrdma_cmd_resp rsp; union pvrdma_cmd_resp rsp;
struct pvrdma_cmd_modify_qp *cmd = &req.modify_qp; struct pvrdma_cmd_modify_qp *cmd = &req.modify_qp;
int cur_state, next_state; enum ib_qp_state cur_state, next_state;
int ret; int ret;
/* Sanity checking. Should need lock here */ /* Sanity checking. Should need lock here */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册