+51
−0
Loading
Add validation logic for the Namespace Identifier (NSID) field in both
Get Features and Set Features commands.
The implementation ensures that NSID values are checked according to the
rules defined in the NVMe spec r1.4, Section 7.8 ("Feature Values")
This commit enforces that behavior by validating NSID and returning the
appropriate error when misused.
Change-Id: I2338b107031661b2664038dc07f0ab61515abe91
Signed-off-by:
Dor Deri <dor.deri@dell.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26534
Community-CI: Mellanox Build Bot
Reviewed-by:
Jim Harris <jim.harris@nvidia.com>
Reviewed-by:
Changpeng Liu <changpeliu@tencent.com>
Tested-by:
SPDK Automated Test System <spdkbot@gmail.com>