]> 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)
commite4146de7ec8266509c687d723c2b8e2102aa0f6d
tree5625027363a41c53f7567c66da42c9a6d4c94284
parentf54f1eb3e58b1ac43c980aa7fef6686179ba782d
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