Commit b3b4fade authored by Tomas Winkler's avatar Tomas Winkler Committed by Tomasz Zawadzki
Browse files

identify: add string mappings for new I/O commands



Add string names for several new NVMe I/O commands to the `io_opc_name()` function.
These commands were introduced in the NVMe 2.0 specification.

Verify: This command is used to check data integrity.
IO Management Receive: Part of the new I/O Management command set.
IO Management Send: A companion command for I/O Management.

Change-Id: Ic5a6122589294035bced6df6f40b66d9db52cea6
Signed-off-by: default avatarTomas Winkler <tomas.winkler@sandisk.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26533


Community-CI: Mellanox Build Bot
Reviewed-by: default avatarChangpeng Liu <changpeliu@tencent.com>
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarAnkit Kumar <ankit.kumar@samsung.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
parent 607f6702
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1699,16 +1699,22 @@ io_opc_name(uint8_t opc)
		return "Write Zeroes";
	case SPDK_NVME_OPC_DATASET_MANAGEMENT:
		return "Dataset Management";
	case SPDK_NVME_OPC_VERIFY:
		return "Verify";
	case SPDK_NVME_OPC_RESERVATION_REGISTER:
		return "Reservation Register";
	case SPDK_NVME_OPC_RESERVATION_REPORT:
		return "Reservation Report";
	case SPDK_NVME_OPC_RESERVATION_ACQUIRE:
		return "Reservation Acquire";
	case SPDK_NVME_OPC_IO_MANAGEMENT_RECEIVE:
		return "IO Management Receive";
	case SPDK_NVME_OPC_RESERVATION_RELEASE:
		return "Reservation Release";
	case SPDK_NVME_OPC_COPY:
		return "Copy";
	case SPDK_NVME_OPC_IO_MANAGEMENT_SEND:
		return "IO Management Send";
	default:
		if (opc >= 0x80) {
			return "Vendor specific";