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: Liang Yan <liang.z.yan@intel.com>
This commit is contained in:
parent
c747375988
commit
5c8f4f180e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user