Currently iSCSI target have used a single contiguous data buffer both for read and write I/O. Hence spdk_dif_set_md_interleave_iovs accepts a single contiguous data buffer and its size as arguments. On the other hand, NVMe-TCP target recently has changed to use SGL data buffer instead. DIF strip and insert will be supported in NVMe-TCP target next, and updating spdk_dif_set_md_interleave_iovs to accept SGL data buffer will be helpful. This patch changes the interface of spdk_dif_set_md_interleave_iovs, but allows only a single iovec. The next patch will allow multiple iovecs. Change-Id: I31b09814f8ec920e463a5b1be8fb88cad7d277fb Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453735 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
dif_ut.c | ||
Makefile |