]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5b9b59f14088ecd1c5d9cae5b5fd27409e3a87d
tree653294b20217ffa104708ab9bddd8fa49bdac6a1
parentb79613c6cf46fd8e3e21f26a59cc83882a8cf100
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