+29
−2
Loading
According to NVMe spec rev1.3d, Section4, Figure12: If admin cmd is not using NSID field - host should set it to 0h. Otherwise - such command should be returned with INVALID FIELD IN COMMAND error. With recent change that added passthrough command caps to nvmf - SPDK engine is forwarding all admin commands with NSID set to the bdev - even the incorrectly formed ones. For example - commit firmware with NSID set to 1. Validate if requested command's opcode is using NSID, Return appropriate error if not - for request with NSID set. Fixes issue #3564. Change-Id: Id2fce050eeaf96ff039073f439d6444ecd55c0b3 Signed-off-by:Pawel Baldysiak <pawel.baldysiak@dell.com> Signed-off-by:
Marcin Galecki <marcin.galecki@dell.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25151 Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>