RDMA/erdma: Allocate doorbell records from dma pool
authorBoshi Yu <boshiyu@linux.alibaba.com>
Mon, 11 Mar 2024 11:38:19 +0000 (19:38 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 1 Apr 2024 11:46:01 +0000 (14:46 +0300)
commitf0697bf078368d765b9e9ceef1dac0d5eb69b4b6
treee923a3825d174bacb0198698d093026703fd6f3d
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
RDMA/erdma: Allocate doorbell records from dma pool

Currently, the 8 byte doorbell record is allocated along with the queue
buffer, which may result in waste of dma space when the queue buffer is
page aligned. To address this issue, we introduce a dma pool named
db_pool and allocate doorbell record from it.

Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240311113821.22482-2-boshiyu@alibaba-inc.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma.h
drivers/infiniband/hw/erdma/erdma_cmdq.c
drivers/infiniband/hw/erdma/erdma_eq.c
drivers/infiniband/hw/erdma/erdma_main.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h