]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Only assign dqpn if IB_QP_PATH_DEST_QPN bit is set
authoroulijun <oulijun@huawei.com>
Thu, 26 Apr 2018 06:46:20 +0000 (14:46 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Apr 2018 18:20:47 +0000 (14:20 -0400)
commit388fb46aaf28dcd24e2a096735ad1a1765190776
tree5625027363a41c53f7567c66da42c9a6d4c94284
parentb34771d565decef12019ac706d3c273cd5d78a41
RDMA/hns: Only assign dqpn if IB_QP_PATH_DEST_QPN bit is set

Only when the IB_QP_PATH_DEST_QPN flag of attr_mask is set
is it valid to assign the dqpn field of qp context

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c