Spdk/test/unit/lib/nvme
Evgeniy Kochetov aebbce2520 nvme: Refactor active namespace list retrieval
Previous implementation allocated memory just once at the beginning of
active NS list retrieval procedure. It allocated memory for maximum
possible number of active namespaces, i.e. 'cdata.nn'.

This patch changes allocation logic. One page is allocated at the
beginning. If more is needed, reallocation is done with one more
page.

This patch also removes SPDK_MALLOC_DMA flag from allocation since we
don't do RDMA directly into this buffer.

Signed-off-by: Evgeniy Kochetov <evgeniik@nvidia.com>
Change-Id: Iaa80c4d70c54daaf71dcbf755c63a01a1d83b772
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6502
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-05-20 15:17:41 +00:00
..
nvme_ctrlr_cmd.c test/nvme_ctrlr_cmd: cases for command security receiving and sending 2021-05-06 07:12:42 +00:00
nvme_ctrlr_ocssd_cmd.c test/nvme_ctrlr_ocssd_cmd: check ocssd supported 2021-04-19 12:49:35 +00:00
nvme_ctrlr.c nvme: Refactor active namespace list retrieval 2021-05-20 15:17:41 +00:00
nvme_cuse.c test/nvme_cuse: cases for getting cuse ns device 2021-05-19 07:50:53 +00:00
nvme_fabric.c test/nvme_fabric: Remove priority assert check for rdma. 2021-05-12 08:48:28 +00:00
nvme_io_msg.c test/nvme_io_msg: cases for io_msg_ctrlr register and unregister 2021-03-29 07:35:04 +00:00
nvme_ns_cmd.c test/unit: Add unit test for Simple Copy Command 2021-05-14 09:59:54 +00:00
nvme_ns_ocssd_cmd.c ut/nvme: Fix uninitialized controller structure 2021-04-12 20:59:51 +00:00
nvme_ns.c test/nvme_ns: cases for identifying id descriptor and find descriptor 2021-04-27 08:35:27 +00:00
nvme_pcie_common.c test/nvme_pcie_common: cases for creating and deleting IO queue 2021-05-18 12:42:52 +00:00
nvme_pcie.c test/nvme_pcie: cases for cmb mapping 2021-05-07 11:40:40 +00:00
nvme_poll_group.c test/nvme_poll_group: cases for getting and freeing stats 2021-04-19 12:48:52 +00:00
nvme_qpair.c test/nvme_qpair: cases for getting sgl print information 2021-05-06 07:13:09 +00:00
nvme_quirks.c log: simplify SPDK_LOG_REGISTER_COMPONENT 2020-10-14 08:00:35 +00:00
nvme_rdma.c unittest/nvme_rdma: increase code coverage for nvme_rdma.c 2021-04-12 22:40:33 +00:00
nvme_tcp.c nvme/tcp: Change the type of recv_pdu to pointer. 2021-05-07 11:41:24 +00:00
nvme_transport.c test/nvme_transport: cases for adding and removing poll group 2021-03-22 09:46:18 +00:00
nvme.c test/nvme: cases for nvme parsing functions 2021-04-19 12:52:29 +00:00
Makefile test/nvme_fabric: build nvme fabric unittest file 2021-04-22 07:27:41 +00:00