RDMA/hns: Only assign the relatived fields of psn if IB_QP_SQ_PSN is set
authorLijun Ou <oulijun@huawei.com>
Sat, 23 Feb 2019 12:01:21 +0000 (20:01 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Mar 2019 23:59:55 +0000 (20:59 -0300)
commitf04cc17878b47bfa47af2e50f481d7f6eaaf3ca7
tree578a9fffff374723175ae69694adc25934a800ee
parent401b44804c2ae7ea1121235fa9c9827d12c2a573
RDMA/hns: Only assign the relatived fields of psn if IB_QP_SQ_PSN is set

Only when the IB_QP_SQ_PSN flags of attr_mask is set is it valid to assign
the relatived fields of psn into the qp context when modified qp.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c