diff options
author | Max Gurtovoy <mgurtovoy@nvidia.com> | 2021-09-23 00:55:35 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-10-20 19:16:01 +0200 |
commit | 44c3c6257e99c6284f312206de73783575fc8906 (patch) | |
tree | dad6ff990003101ecc36fbe1dcaa87492073c5d3 /include | |
parent | 2351ead99ce9164fb42555aee3f96af84c4839e9 (diff) | |
download | linux-44c3c6257e99c6284f312206de73783575fc8906.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvme-rdma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvme-rdma.h b/include/linux/nvme-rdma.h index 3ec8e50efa16..4dd7e6fe92fb 100644 --- a/include/linux/nvme-rdma.h +++ b/include/linux/nvme-rdma.h @@ -6,6 +6,8 @@ #ifndef _LINUX_NVME_RDMA_H #define _LINUX_NVME_RDMA_H +#define NVME_RDMA_MAX_QUEUE_SIZE 128 + enum nvme_rdma_cm_fmt { NVME_RDMA_CM_FMT_1_0 = 0x0, }; |