+1
−0
+12
−2
Loading
Add a macro constant SPDK_DIF_FLAGS_NVME_PRACT which is the same value as the PRACT bit in the NVMe specification. spdk_dif_generate/verify_copy() works if NVME_PRACT is not set or metadata size is equal with PI size, or return -ENOTSUP otherwise. The following patch will support the ENOTSUP cases. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ie0113521572aa405f26c8c197f5ffb14ca0503ff Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23687 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Community-CI: Mellanox Build Bot