RDMA/hns: Fix missing fields in address vector
authorWeihang Li <liweihang@huawei.com>
Mon, 16 Nov 2020 11:33:23 +0000 (19:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 19:24:47 +0000 (15:24 -0400)
commitfba429fcf9a5e0c4ec2523ecf4cf18bc0507fcbc
tree5eb3df77b0821312f1d86f9de37b3224bdc3ce60
parent7406c0036f851ee1cd93cb08349f24b051b4cbf8
RDMA/hns: Fix missing fields in address vector

Traffic class and hop limit in address vector is not assigned from GRH,
but it will be filled into UD SQ WQE. So the hardware will get a wrong
value.

Fixes: 82e620d9c3a0 ("RDMA/hns: Modify the data structure of hns_roce_av")
Link: https://lore.kernel.org/r/1605526408-6936-3-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