8b24fc4a31
For NVMe/TCP target, data segments which correspond to H2C or C2H PDU will have any alignment. spdk_dif_set_md_interleave_iovs() have allowed reading data to have any alignment but had required data segment to be a multiple of block size. In other words, spdk_dif_set_md_interleave_iovs() had required that both ctx->data_offset and (data_offset + data_len) must be a multiple of the data block size. This patch refines the algorithm to remove the latter requirement. The update implies that spdk_dif_set_md_interleave_iovs support any data buffer whose size is less than a single data block. The update doesn't change parameters of spdk_dif_set_md_interleave_iovs and existing UT should be passed. This patch adds additional UT code to test these updates. Change-Id: I88c7d2a80a8d92b54863b6ad1c3a9d2761a6195d Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457542 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal | ||
Makefile |