+1
−0
+4
−0
Loading
This patch fixes a bug, where the cmd.psdt was incorrectly set if the NVMe controller reported in Identify Controller Data Structure that it supports SGLs (bits 01:00 set to 10b), but it doesn't support Metadata Pointer containing an SGL Descriptor (bit 19 set to 0). In such case the cmd.psdt shall be set to SPDK_NVME_PSDT_SGL_MPTR_CONTIG, while it was set to SPDK_NVME_PSDT_SGL_MPTR_SGL causing the controller reported INVALID FIELD error. Now it is fixed, and the cmd.psdt is correctly set for both values passed in bit 19. Fixes #2991 Change-Id: Ie4af5b7a6c1a8c5f69ee3ed80646e5c02f36286e Signed-off-by:Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18094 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:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>