]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: limit the maximal queue size for RDMA controllers
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Wed, 22 Sep 2021 21:55:35 +0000 (00:55 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 17:16:01 +0000 (19:16 +0200)
commit9ea9c310bd7ccf6f67ded65ed1a15de9af642ff3
treedad6ff990003101ecc36fbe1dcaa87492073c5d3
parent4849e0e789f6ddff10f51cfd4756c93f81cf198f
nvme-rdma: limit the maximal queue size for RDMA controllers

Corrent limit of 1024 isn't valid for some of the RDMA based ctrls. In
case the target expose a cap of larger amount of entries (e.g. 1024),
the initiator may fail to create a QP with this size. Thus limit to a
value that works for all RDMA adapters.

Future general solution should use RDMA/core API to calculate this size
according to device capabilities and number of WRs needed per NVMe IO
request.

Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c
include/linux/nvme-rdma.h