Spdk/test/unit/lib/nvme
Ziye Yang 0b51da144f nvme/tcp: Fix the C2hdata pdu receving logic.
There may be multiple C2H data pdus recevied.
So we should use the following steps:

1 Use the SPDK_NVME_TCP_C2H_DATA_FLAGS_LAST_PDU
to check whether it is a last pdu or not.
Then we will not cleanup tcp_req, i.e., tcp_req->datao
will not be cleaned.

Then use the SPDK_NVME_TCP_C2H_DATA_FLAGS_SUCCESS
to check whether the controller will use resp pdu
or not.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Change-Id: I9dccf2579aadd18f31361444e25bd4b3b76f06c5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9192
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-08-23 08:51:14 +00:00
..
nvme_ctrlr_cmd.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ctrlr_ocssd_cmd.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ctrlr.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_cuse.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_fabric.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_io_msg.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ns_cmd.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ns_ocssd_cmd.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ns.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_opal.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_pcie_common.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_pcie.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_poll_group.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_qpair.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_quirks.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_rdma.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_tcp.c nvme/tcp: Fix the C2hdata pdu receving logic. 2021-08-23 08:51:14 +00:00
nvme_transport.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
Makefile test/nvme_opal: build nvme_opal unittest file 2021-06-07 07:24:47 +00:00