RDMA/hns: Only assign mtu if IB_QP_PATH_MTU bit is set
authoroulijun <oulijun@huawei.com>
Thu, 26 Apr 2018 06:46:18 +0000 (14:46 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Apr 2018 18:20:47 +0000 (14:20 -0400)
commit6852af86627c7bd8de11c9ad3eb5cca7d99e5884
tree495db3a00870a0304748ade77019c7546ba37834
parent6e1a70943cecdca9bb13b601b1a9772a7bdcc2c3
RDMA/hns: Only assign mtu if IB_QP_PATH_MTU bit is set

Only when the IB_QP_PATH_MTU flag of attr_mask is set
it is valid to assign the mtu field of qp context when
qp type is not GSI and UD.

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