NVMe/TCP target may split a whole data payload into multiple H2C or C2H PDUs with any alignment. Hence to insert or strip DIF correctly to the split H2C or C2H PDUs, we have to bring the interim guard value of the last partial data block of the current H2C or C2H PDU to the first partial data block of the next H2C or C2H PDU. So we add last_guard to struct spdk_dif_ctx and use it in spdk_dif_generate_stream(). API spdk_dif_generate_stream() is not changed and UT code should pass without any change. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I12636c5ac7f619483402538faff4339a16c0e6b0 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457545 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal | ||
Makefile |