RDMA/hns: Bugfix for the missing assignment for dip_idx
authorJunxian Huang <huangjunxian4@hisilicon.com>
Wed, 25 Aug 2021 09:43:11 +0000 (17:43 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 25 Aug 2021 16:55:29 +0000 (13:55 -0300)
commit074f315fc54a9ce45559a44ca36d9fa1ee1ea2cd
treef5ece4cd26fb04cccf1a8e5c74392d6d8534bde8
parent4303e61264c45cb535255c5b76400f5c4ab1305d
RDMA/hns: Bugfix for the missing assignment for dip_idx

When the dgid-dip_idx mapping relationship exists, dip should be assigned.

Fixes: f91696f2f053 ("RDMA/hns: Support congestion control type selection according to the FW")
Link: https://lore.kernel.org/r/1629884592-23424-3-git-send-email-liangwenpeng@huawei.com
Signed-off-by: Junxian Huang <huangjunxian4@hisilicon.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c