]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/hns: Fix insufficient extend DB for VFs.
authorChengchang Tang <tangchengchang@huawei.com>
Wed, 10 Jul 2024 13:37:04 +0000 (21:37 +0800)
committerLeon Romanovsky <leon@kernel.org>
Thu, 11 Jul 2024 10:25:12 +0000 (13:25 +0300)
commit0b8e658f70ffd5dc7cda3872fd524d657d4796b7
treed5d69a007bda98765bd5ef18e979af353e48d723
parent36397b907355e2fdb5a25a02a7921a937fd8ef4c
RDMA/hns: Fix insufficient extend DB for VFs.

VFs and its PF will share the memory of the extend DB. Currently,
the number of extend DB allocated by driver is only enough for PF.
This leads to a probability of DB loss and some other problems in
scenarios where both PF and VFs use a large number of QPs.

Fixes: 6b63597d3540 ("RDMA/hns: Add TSQ link table support")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240710133705.896445-8-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c