Commit 5c8f4f18 authored by Liang Yan's avatar Liang Yan Committed by Daniel Verkamp
Browse files

nvmf: Update status code for discovery command



Set status code to invalid opcode when opcode is not supported
in nvmf_process_discovery_cmd.

Change-Id: Ibab8097e536f26f16c322d5f539277688906cfc3
Signed-off-by: default avatarLiang Yan <liang.z.yan@intel.com>
parent c7473759
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ nvmf_process_discovery_cmd(struct spdk_nvmf_request *req)
		break;
	default:
		SPDK_ERRLOG("Unsupported Opcode 0x%x for Discovery service\n", cmd->opc);
		response->status.sc = SPDK_NVME_SC_INVALID_FIELD;
		response->status.sc = SPDK_NVME_SC_INVALID_OPCODE;
		return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
	}