]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2a5a1273d5150df5a58bf817d4cabfb8f99a554
tree0c3bb2cdbabc26b2ed82e75695496559d93bd570
parentd6592bab0cbdbbf8363a65bd45e1bd5c41743b8d
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