]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix wrong assignment of qp_access_flags
authorLijun Ou <oulijun@huawei.com>
Wed, 21 Aug 2019 13:14:36 +0000 (21:14 +0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 28 Aug 2019 15:57:26 +0000 (11:57 -0400)
commit5334f66491f809d5575f1bf5b76fab127064e4e2
tree63c977e6cec8a3218295edce7c7257dff9aaae6b
parente4978aa91ca0d4d6232b9ec1534f6dc662c65f69
RDMA/hns: Fix wrong assignment of qp_access_flags

We used wrong shifts when set qp_attr->qp_access_flag,
this patch exchange V2_QP_RRE_S and V2_QP_RWE_S to fix it.

Fixes: e89cc1a2154a ("RDMA/hns: Replace magic numbers with #defines")
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Link: https://lore.kernel.org/r/1566393276-42555-10-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c