6716729c9c
This patch adds an API spdk_dif_set_md_interleave_iovs(). This function is used to leave a space for metadata for each block when the network socket reads data, or to make the network socket ignore a space for metadata for each block when the network socket writes data. This function removes the necessity of data copy in the SPDK application during DIF insertion and strip. Change-Id: I018efd77bdadcaec4679eea4dc1e404f155b0879 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446216 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>