Spdk/lib/nvmf
Shuhei Matsumoto 5b27db6268 lib/nvmf: Check if I/O qpair is on the same listener as admin qpair
We will have ANA state per listener and per subsystem. On the other hand,
NVMe specification defines ANA state per controller.

However, it is possible that I/O qpair and admin qpair are different
listeners on a single controller.

Let's check if I/O qpair is on the same listener as admin qpair if
ANA reporting is enabled.

The case that I/O qpair is on a different listener from admin qpair
is not usual and so the purpose of this check is just to guard SPDK
from any unexpected behavior.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Idb8d255de7f998e45a59a120c2ed5803258873f4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4026
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-09-04 08:14:18 +00:00
..
ctrlr_bdev.c lib/nvmf: Support custom admin cmd handler for abort 2020-07-24 07:25:47 +00:00
ctrlr_discovery.c lib/nvmf: remove spdk_ and _spdk prefix from functions. 2020-06-01 09:21:14 +00:00
ctrlr.c lib/nvmf: Check if I/O qpair is on the same listener as admin qpair 2020-09-04 08:14:18 +00:00
fc_ls.c nvmf: Remove new_qpair callback from transport accept function pointer 2020-06-18 07:29:41 +00:00
fc.c lib/nvmf: Add nvmf_transport_qpair_abort_request() 2020-07-14 07:54:42 +00:00
Makefile lib/nvmf: make spdk_nvmf_qpair_disconnect thread safe. 2020-08-12 07:51:15 +00:00
nvmf_fc.h nvmf: Remove new_qpair callback from transport accept function pointer 2020-06-18 07:29:41 +00:00
nvmf_internal.h lib/nvmf: Add subsystem_listener to struct spdk_nvmf_ctrlr 2020-09-04 08:14:18 +00:00
nvmf_rpc.c rpc/nvmf: Add ana_reporting parameter to nvmf_create_subsystem RPC 2020-08-21 08:22:40 +00:00
nvmf.c nvmf: Stop pg poller when all qpairs are destroyed 2020-09-01 07:51:45 +00:00
rdma.c lib/nvmf: Add trid to struct spdk_nvmf_qpair 2020-09-04 08:14:18 +00:00
spdk_nvmf.map lib/nvmf: Optionalize ANA reporting feature 2020-08-21 08:22:40 +00:00
subsystem.c nvmf/subsystem: find intermediate state in helper function. 2020-08-27 08:36:09 +00:00
tcp.c lib/nvmf: Add trid to struct spdk_nvmf_qpair 2020-09-04 08:14:18 +00:00
transport.c nvmf: fix the associate timeout value 2020-08-21 08:23:45 +00:00
transport.h lib/nvmf: Add nvmf_transport_qpair_abort_request() 2020-07-14 07:54:42 +00:00