RDMA/hns: Only assign dqpn if IB_QP_PATH_DEST_QPN bit is set
authoroulijun <[email protected]>
Thu, 26 Apr 2018 06:46:20 +0000 (14:46 +0800)
committerDoug Ledford <[email protected]>
Fri, 27 Apr 2018 18:20:47 +0000 (14:20 -0400)
commitb6dd9b34838506f5307850d8d320d7b1ac6761d3
tree5625027363a41c53f7567c66da42c9a6d4c94284
parent734f38638d7b91c173ddfe46ceadb0382fae9b1f
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 <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c