Spdk/test/unit/lib/nvmf
Shuhei Matsumoto 2a67deefc0 nvmf: Add ana_reporting parameter into JSON config dump
We could not restore the setting of ana_reporting because it was not
included in the JSON config dump.

Add the parameter ana_reporting into JSON config dump by adding and
using a new helper function nvmf_subsystem_get_ana_reporting().

Besides, previously the JSON RPC nvmf_subsystem_get_listeners had
ana_state regardless of the value of ana_reporting. We make it
conditional in this patch. The JSON RPC nvmf_subsystem_get_listeners
had not been used in the test code in the repository. Hence this
change will be acceptable.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ia4e04600c969c254e0a816d3eb34983ee951091e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9111
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Monica Kenguva <monica.kenguva@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-08-20 07:29:16 +00:00
..
ctrlr_bdev.c test/nvmf/ctrlr_bdev: cases for ctrlr cmd 2021-07-30 08:20:09 +00:00
ctrlr_discovery.c lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
ctrlr.c ut/nvmf: Fix uninitialized request structure 2021-08-05 07:43:04 +00:00
fc_ls.c nvmf/fc: Cleanup pollgroup and hwqp mapping logic. 2021-01-14 16:18:25 +00:00
fc.c nvmf: Add commit parameter to zcopy end operation 2021-07-27 14:53:39 +00:00
nvmf.c nvmf: Add ana_reporting parameter into JSON config dump 2021-08-20 07:29:16 +00:00
rdma.c unittest/nvmf: test for nvmf_rdma_update_ibv_state 2021-07-13 09:01:14 +00:00
subsystem.c test/nvmf/subsystem: cases for adding host subsystem 2021-07-30 08:19:13 +00:00
tcp.c unittest/nvmf_tcp: Test for nvmf_tcp_icreq_handle 2021-08-13 07:15:45 +00:00
vfio_user.c nvme: map PRP and SGL lists RO 2021-07-13 16:53:42 +00:00
Makefile test/nvmf: build nvmf unittest file 2021-07-30 08:19:35 +00:00