]> 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)
commit0cafb7654a973bd7f8ada0b4195ad380d6ee2142
tree0c3bb2cdbabc26b2ed82e75695496559d93bd570
parent7d6d057c41dd692f92c47455555996568901a1ad
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