| 8c4ed83b | 28-Dec-2018 |
Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
vtophys: add length parameter to the vtophys function
This follows the same trend as the mem_map APIs.
Currently, most of the spdk_vtophys() callers manually detect physically noncontiguous buffers
vtophys: add length parameter to the vtophys function
This follows the same trend as the mem_map APIs.
Currently, most of the spdk_vtophys() callers manually detect physically noncontiguous buffers to split them into multiple physically contiguous chunks. This patch is a first step towards encapsulating most of that logic in a single place - in spdk_vtophys() itself.
This patch doesn't change any functionality on its own, it only extends the API.
Change-Id: I16faa9dea270c370f2a814cd399f59055b5ccc3d Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/438449 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
| 5d573868 | 11-Sep-2018 |
Seth Howell <seth.howell@intel.com> |
env_dpdk: spdk_mem_map_translate informs user of translation size.
This function will now check for whether or not a memory region is contiguous accross 2MB map entries and return the total length o
env_dpdk: spdk_mem_map_translate informs user of translation size.
This function will now check for whether or not a memory region is contiguous accross 2MB map entries and return the total length of that contiguous buffer up to the size specified by the user.
Also includes unittests This series of changes is aimed at enabling spdk_mem_map_translate to report back to the user the length of the valid mem_map up to the function that requested the translation. This will be useful when retrieving memory regions associated with I/O buffers in NVMe-oF. For large I/O it will be possible that the buffer is split over multiple MRs and the I/O will have to be split into multiple SGLs. Change-Id: I2ce582427d451be5a317808d0825c770e12e9a69 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/425329 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|