Spdk/test/unit/lib/nvmf
matthewb f7b9f80b32 lib/nvmf : Fixed bad response if response is sent prior to _nvmf_request_complete being called
If a response is returned prior to _nvmf_request_complete being called then the cid in the response is
not set correctly and the PDU state is not reset which causes a hang and the PDU state machine is
expecting more data but none will be sent.  There are two cases where this can occur:
1) If the request is bi-directional
2) If nvmf_tcp_req_parse_sgl returns an error (e.g max_io_size exceeded)

Signed-off-by: matthewb <matthew.burbridge@hpe.com>
Change-Id: Icc3ed02a4499a12d8920e6433a746b72022a72fe
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9327
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-09-03 08:07:55 +00:00
..
ctrlr_bdev.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
ctrlr_discovery.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
ctrlr.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
fc_ls.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
fc.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvmf.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
rdma.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
subsystem.c test/nvmf/subsystem: case for namespace reservation 2021-08-24 07:19:12 +00:00
tcp.c lib/nvmf : Fixed bad response if response is sent prior to _nvmf_request_complete being called 2021-09-03 08:07:55 +00:00
transport.c test/nvmf/transport: build nvmf transport ut file 2021-08-30 07:18:10 +00:00
vfio_user.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
Makefile test/nvmf: only build and run transport_ut.c when RDMA is enabled 2021-09-01 07:34:37 +00:00