OSDN Git Service

RDMA/hns: Fix QP state judgement before receiving work requests
authorYixian Liu <liuyixian@huawei.com>
Wed, 7 Feb 2018 09:49:29 +0000 (17:49 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 14 Feb 2018 23:30:12 +0000 (16:30 -0700)
commitced07769dc8484a9221aa616b3e935e748e8db03
tree7a4b6d41900dacb04d96617f98c3d609705e2848
parent173bc6be96c733ff7e6418eece9d64d03e7465b3
RDMA/hns: Fix QP state judgement before receiving work requests

The QP can accept receive 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: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c