When pdu->dif_ctx is not NULL, call spdk_dif_update_crc32_stream to calculate crc32c instead. To improve readability, factor out the operation to calculate crc32c when pdu->dif_ctx is NULL together. spdk_dif_update_crc32_stream is already tested in UT for DIF library. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Id9a0a4bc56af7f155da46d6a2eb7b2fdff010f2c Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458922 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
assert.h | ||
copy_engine.h | ||
event.h | ||
log.h | ||
lvolstore.h | ||
memory.h | ||
mock.h | ||
nvme_tcp.h | ||
sock.h | ||
thread.h | ||
utf.h | ||
vhost_user.h | ||
virtio.h |