Spdk/test/unit/lib/nvmf
Alexey Marchuk fb4398ef4b nvmf: Correct the error path of transport creation.
An error might occur after succesful transport creation
when the new transport is added to nvmf poll groups, e.g.
in nvmf_transport_poll_group_create. In that case
transport is not detroyed and poll groups are not fully
functional. To correct this behaviour, destroy transport if
spdk_nvmf_tgt_add_transport fails. Also update nvmf_tgt
initialization step to check that all poll groups were
created.

Change-Id: I116e6944729d846c1755c2844c77825f65db8c12
Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9255
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2021-09-08 08:08:41 +00:00
..
ctrlr_bdev.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
ctrlr_discovery.c nvmf: Fix double controller destruction when subsys is deleted 2021-09-08 08:04:04 +00:00
ctrlr.c nvmf: Fix double controller destruction when subsys is deleted 2021-09-08 08:04:04 +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 nvmf: Correct the error path of transport creation. 2021-09-08 08:08:41 +00:00
rdma.c nvmf: deduplicate transport listen dump opts 2021-09-06 09:53:57 +00:00
subsystem.c nvmf: Fix double controller destruction when subsys is deleted 2021-09-08 08:04:04 +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 nvmf: deduplicate transport listen dump opts 2021-09-06 09:53:57 +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