nvmf: add one more iov entry for unaligned first page
For NVMe PRP list command, if the first PRP entry wasn't page aligned, the number of IOV should add one more entry. For VFIOUSER transport, a 128KiB PRP command may use 33 entries, so we add one more entry here to address this case. Change-Id: I9e30b301ef3ab62d7667adf336f38be9df699929 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7263 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: <dongx.yi@intel.com>
This commit is contained in:
parent
45aaf0db1d
commit
bc279db48a
@ -48,7 +48,7 @@
|
||||
#define SPDK_NVMF_MAX_SGL_ENTRIES 16
|
||||
|
||||
/* The maximum number of buffers per request */
|
||||
#define NVMF_REQ_MAX_BUFFERS (SPDK_NVMF_MAX_SGL_ENTRIES * 2)
|
||||
#define NVMF_REQ_MAX_BUFFERS (SPDK_NVMF_MAX_SGL_ENTRIES * 2 + 1)
|
||||
|
||||
/* AIO backend requires block size aligned data buffers,
|
||||
* extra 4KiB aligned data buffer should work for most devices.
|
||||
|
Loading…
Reference in New Issue
Block a user