]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/hns: Introduce limit_bank mode with better performance
authorLianfa Weng <wenglianfa@huawei.com>
Tue, 30 Dec 2025 15:49:11 +0000 (23:49 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 31 Dec 2025 10:33:34 +0000 (05:33 -0500)
commit8818ffb04bfa168dfe5056cd24cee5211dcc4b3c
treed76b09471e51f27ca32fb804854a2bc2d1d7e231
parenta3572bdc3a028ca47f77d7166ac95b719cf77d50
RDMA/hns: Introduce limit_bank mode with better performance

In limit_bank mode, QPs/CQs are restricted to using half of the banks.
HW concentrates resources on these banks, thereby improving performance
compared to the default mode.

Switch between limit_bank mode and default mode by setting the cap
flag in FW. Since the number of QPs and CQs will be halved, this mode
is suitable for scenarios where fewer QPs and CQs are required.

Signed-off-by: Lianfa Weng <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20251230154911.3397584-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_qp.c