3a58a5f19c
The API `spdk_nvme_map_prps` is used in nvmf/vfio-user to remap VM's NVMe command data buffer to local virtual address, and for command using PRP, there maybe multiple pages, when parsing the PRP list to local IOVs, we need a parameter to check that the maximum number of vectors can't exceed the IOVs, this API can't meet the requirement, while here, we add a new API `spdk_nvme_map_cmd` and with a new parameter `max_iovcnt` to fix this case, and it can also cover the command using SGL in the coming patches. Change-Id: I71063524bed16ee3434103867a556d3741e55326 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7278 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal | ||
Makefile |