RDMA/hns: Only assign dest_qp if IB_QP_DEST_QPN bit is set
authorLijun Ou <oulijun@huawei.com>
Fri, 29 Sep 2017 15:10:10 +0000 (23:10 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 16:09:21 +0000 (12:09 -0400)
commit512f4f1653e63b6efbdccb296b812fa809b7c95c
tree653294b20217ffa104708ab9bddd8fa49bdac6a1
parenta74dc41d49959e46ca356a388fab3a23a4b593cd
RDMA/hns: Only assign dest_qp if IB_QP_DEST_QPN bit is set

Only when the IB_QP_DEST_QPN flag of attr_mask is set is it valid to
assign the dest_qp_num into the dest_qp field of qp context.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c