mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-20 01:24:39 +08:00
RDMA/hns: Remove unnecessary check for the sgid_attr when modifying QP
The sgid_attr cannot be null in this scenario. This judgment is redundant.
Fixes: 606bf89e98
("RDMA/hns: Refactor for hns_roce_v2_modify_qp function")
Link: https://lore.kernel.org/r/20220409083254.9696-2-liangwenpeng@huawei.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
98c8026331
commit
c2fcafa78a
@ -4966,9 +4966,7 @@ static int hns_roce_v2_set_path(struct ib_qp *ibqp,
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (gid_attr)
|
is_udp = (gid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP);
|
||||||
is_udp = (gid_attr->gid_type ==
|
|
||||||
IB_GID_TYPE_ROCE_UDP_ENCAP);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only HIP08 needs to set the vlan_en bits in QPC */
|
/* Only HIP08 needs to set the vlan_en bits in QPC */
|
||||||
|
Loading…
Reference in New Issue
Block a user