RDMA/hns: Avoid filling sl in high 3 bits of vlan_id
authorWeihang Li <liweihang@huawei.com>
Fri, 11 Dec 2020 01:37:30 +0000 (09:37 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Dec 2020 19:21:34 +0000 (15:21 -0400)
commit94a8c4dfcdb2b4fcb3dfafc39c1033a0b4637c86
tree43c05adbbe2b8123fb3facac77ad9fc26ac9ae6c
parent603bee935f38080a3674c763c50787751e387779
RDMA/hns: Avoid filling sl in high 3 bits of vlan_id

Only the low 12 bits of vlan_id is valid, and service level has been
filled in Address Vector. So there is no need to fill sl in vlan_id in
Address Vector.

Fixes: 7406c0036f85 ("RDMA/hns: Only record vlan info for HIP08")
Link: https://lore.kernel.org/r/1607650657-35992-5-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_ah.c