nvme/spec: completion queue entry Dword1 is now command specific
The ratified NVME TP4056 changes the completion queue entry Dword1 from reserved to command specific. Update spdk_nvme_cpl to reflect this. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I6a21eb1355f6ca69770ea7eb4ccc8fe1c5a0d737 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6011 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: sunshihao <sunshihao@huawei.com> Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
33b5627a37
commit
628f9adb39
@ -1124,7 +1124,7 @@ struct spdk_nvme_cpl {
|
|||||||
uint32_t cdw0; /* command-specific */
|
uint32_t cdw0; /* command-specific */
|
||||||
|
|
||||||
/* dword 1 */
|
/* dword 1 */
|
||||||
uint32_t rsvd1;
|
uint32_t cdw1; /* command-specific */
|
||||||
|
|
||||||
/* dword 2 */
|
/* dword 2 */
|
||||||
uint16_t sqhd; /* submission queue head pointer */
|
uint16_t sqhd; /* submission queue head pointer */
|
||||||
|
@ -1881,7 +1881,7 @@ nvmf_fc_send_ersp_required(struct spdk_nvmf_fc_request *fc_req,
|
|||||||
|
|
||||||
if (!(rsp_cnt % fc_conn->esrp_ratio) ||
|
if (!(rsp_cnt % fc_conn->esrp_ratio) ||
|
||||||
(cmd->opc == SPDK_NVME_OPC_FABRIC) ||
|
(cmd->opc == SPDK_NVME_OPC_FABRIC) ||
|
||||||
(status & 0xFFFE) || rsp->cdw0 || rsp->rsvd1 ||
|
(status & 0xFFFE) || rsp->cdw0 || rsp->cdw1 ||
|
||||||
(req->length != xfer_len)) {
|
(req->length != xfer_len)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user