nvmf/tcp: remove the unnecessary check.
Since we already make the recv state handling in a correct way, so we do not need this check any more. Change-Id: Id71ab2e0ef60be302f8cf6ea776259d7312663ec Signed-off-by: Ziye Yang <optimistyzy@gmail.com> Reviewed-on: https://review.gerrithub.io/436896 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
b7b2c972c9
commit
5f03a9c1f3
@ -1955,10 +1955,6 @@ spdk_nvmf_tcp_sock_process(struct nvme_tcp_qpair *tqpair)
|
|||||||
/* Wait for the pdu specific header */
|
/* Wait for the pdu specific header */
|
||||||
case NVME_TCP_PDU_RECV_STATE_AWAIT_PDU_PSH:
|
case NVME_TCP_PDU_RECV_STATE_AWAIT_PDU_PSH:
|
||||||
pdu = &tqpair->pdu_in_progress;
|
pdu = &tqpair->pdu_in_progress;
|
||||||
if (pdu->tcp_req) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
psh_len = hlen = pdu->hdr.common.hlen;
|
psh_len = hlen = pdu->hdr.common.hlen;
|
||||||
/* Only capsule_cmd and h2c_data has header digest */
|
/* Only capsule_cmd and h2c_data has header digest */
|
||||||
if (((pdu->hdr.common.pdu_type == SPDK_NVME_TCP_PDU_TYPE_CAPSULE_CMD) ||
|
if (((pdu->hdr.common.pdu_type == SPDK_NVME_TCP_PDU_TYPE_CAPSULE_CMD) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user