RDMA/hns: Only assign the fields of the rq psn if IB_QP_RQ_PSN is set
authorLijun Ou <oulijun@huawei.com>
Sat, 23 Feb 2019 12:01:22 +0000 (20:01 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Mar 2019 23:59:55 +0000 (20:59 -0300)
commit601f3e6d067c4399953dc7ede8f4c5448f91b02a
tree063f562ffacbb3c200410cd41808ce6fdb8a7af6
parentf04cc17878b47bfa47af2e50f481d7f6eaaf3ca7
RDMA/hns: Only assign the fields of the rq psn if IB_QP_RQ_PSN is set

Only when the IB_QP_RQ_PSN flags of attr_mask is set is it valid to assign
the relatived fields of rq'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