OSDN Git Service

RDMA/hns: Only assgin the fields of the av if IB_QP_AV bit is set
authorLijun Ou <oulijun@huawei.com>
Mon, 30 Jul 2018 12:20:25 +0000 (20:20 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:42:44 +0000 (20:42 -0600)
commit610b89677f422e8a07b2343a0750a1b3faca7922
tree2663751f43d9edbfe6a4a6f6c8759ae3d4caaa03
parent1ffba6264268e3a3f32f963ef3f44006ea9ebd35
RDMA/hns: Only assgin the fields of the av if IB_QP_AV bit is set

Only when the IB_QP_AV flag of attr_mask is set is it valid to assign the
related fields of the av into the qp context.

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