]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd75dc59d689af06653e6468c7429e647ac5f5ab0
tree495db3a00870a0304748ade77019c7546ba37834
parentc86df34c78394057bf376b5f291ca2309c045aee
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