+21
−12
+4
−0
Loading
Add crc32c to struct spdk_iscsi_pdu and initialize it by SPDK_CRC32C_INITIAL, and then use it as the initial value of _iscsi_pdu_calc_data_digest(). Separate finalization of crc32c into _iscsi_pdu_finalize_data_digest(). Move the definition of related macro constants from iscsi.c to iscsi.h. iscsi_pdu_calc_data_digest() is used for read too. So setting pdu->valid_data_bytes before calling iscsi_pdu_calc_data_digest() for read. Data split will be supported only if DIF is disabled, and hence DIF case is not changed. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I9d24f605fd0d452782e17695b613cd2f63d2e42f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6421 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com>