OSDN Git Service

RDMA/hns: Fix QP state judgement before sending work requests
authorYixian Liu <liuyixian@huawei.com>
Wed, 3 Jan 2018 02:44:07 +0000 (10:44 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jan 2018 20:58:59 +0000 (13:58 -0700)
commit10bd2ade4b5fe0e8d0f3a4c4b20f008c4cb06bd2
tree0c3bb2cdbabc26b2ed82e75695496559d93bd570
parent52e3b42a2f587912f0558cd4989da160d8b1304a
RDMA/hns: Fix QP state judgement before sending work requests

The QP can accept send work requests only when the QP is
in the states that allow them to be submitted.

This patch updates the QP state judgement based on the
specification.

Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c