]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Remove the num_cqc_timer variable
authorYixing Liu <liuyixing1@huawei.com>
Fri, 29 Apr 2022 09:35:45 +0000 (17:35 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 5 May 2022 00:34:11 +0000 (21:34 -0300)
commit9ca98472c2b02487172577027a8ddc7610a4ffde
tree874d4b498956493896ba79f69d0ec17198b46c84
parente6a2f4cd2be622c4b060401d9f2d3a0d19c6e918
RDMA/hns: Remove the num_cqc_timer variable

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

Fixes: 110befaeea4b ("RDMA/hns: Add timer allocation support for hip08")
Link: https://lore.kernel.org/r/20220429093545.58070-1-liangwenpeng@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
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