ced3e20709
When pdu->dif_ctx is not NULL, call spdk_dif_set_md_interleave_iovs in nvme_tcp_build_iovs and nvme_tcp_build_payload_iovs to create special SGL for the data segment to leave a space of metadata for each block. Add UT to verify if the update works correctly. This update is very similar with the use case of spdk_dif_set_md_interleave_iovs in iSCSI target. Change-Id: Ie802cb4b7c541089579ecc2a630fc1e34004da55 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458923 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>