| d3032139 | 23-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: Remove alignment requirement from spdk_dif_generate_copy()
spdk_dif_generate_copy() required each iovec of bounce buffer to be multiple of block size length. This was too strong.
Software impl
dif: Remove alignment requirement from spdk_dif_generate_copy()
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>
show more ...
|
| 47494478 | 08-May-2024 |
Krzysztof Sprzaczkowski <krzysztof.sprzaczkowski@intel.com> |
test/accel: DIF accel functional tests refactor
Modified the names of functions for allocating/freeing buffers used during DIF tests. Changed error handling for alloc/free from asserts to return err
test/accel: DIF accel functional tests refactor
Modified the names of functions for allocating/freeing buffers used during DIF tests. Changed error handling for alloc/free from asserts to return errors. Replaced the use of CU_ASSERT to SPDK_CU_ASSERT_FATAL macro.
Change-Id: I2bb8a84be1d989b272eca1bc61d47d57811b03b7 Signed-off-by: Krzysztof Sprzaczkowski <krzysztof.sprzaczkowski@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23041 Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|