RDMA/hns: Remove the num_qpc_timer variable
authorYixing Liu <liuyixing1@huawei.com>
Mon, 29 Aug 2022 10:50:20 +0000 (18:50 +0800)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 30 Aug 2022 07:22:43 +0000 (10:22 +0300)
commit45baad7dd98f4d83f67c86c28769d3184390e324
treea32ad72e875ec8fc1e095b347b3d75b7c2e64a7a
parent0c8b5d6268d92d141bfd64d21c870d295a84dee1
RDMA/hns: Remove the num_qpc_timer variable

The bt number of qpc_timer of HIP09 increases compared with that of HIP08.
Therefore, qpc_timer_bt_num and num_qpc_timer do not match. As a result,
the driver may fail to allocate qpc_timer. So the driver needs to uniquely
uses qpc_timer_bt_num to represent the bt number of qpc_timer.

Fixes: 0e40dc2f70cd ("RDMA/hns: Add timer allocation support for hip08")
Link: https://lore.kernel.org/r/20220829105021.1427804-4-liangwenpeng@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_main.c