+35
−33
+1
−1
Loading
spdk_dif_generate_copy() required each iovec of bounce buffer to be multiple of block size length. This was too strong. Software implementation should not have strong limitation on configuration. Remove the limitation in this patch. Modify the functional test of the DIF feature of the accel framework slightly. The total length of the iovec still should be larger than payload length. spdk_dif_verify_copy() have the same strong limitation. However, in unit tests, spdk_dif_generate_copy() and spdk_dif_verify_copy() are a pair and share the same bounce buffer. If we add bugs to both of spdk_dif_generate_copy() and spdk_dif_verify_copy(), it is likely that the bugs are not found in unit tests. Hence, this patch changes only spdk_dif_generate_copy(). The next patch will change spdk_dif_verify_copy(). Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ib50299a8b337a4825708891f9739e72a862fbf49 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23846 Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com>