Spdk/test/unit/lib/nvme
Shuhei Matsumoto 49d3a5e47c nvme: The upper layer controls DNR dynamically for I/O aborts
When I/O error resiliency is supported, most DNR parameters for internal
APIs were cleared. However, for some cases, especially for the reset I/O
command, the upper layer wants the NVMe driver to return I/O errors
immediately without retry even if the upper layer enables I/O error retry.

To satisfy such requirement, add an abort_dnr variable to the spdk_nvme_qpair
structure and internal abort APIs use the abort_dnr variable. A public API
spdk_nvme_qpair_set_abort_dnr() can change the abort_dnr variable dynamically.

The public spdk_nvme_transport_ops structure is not changed to avoid
premature changes.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I486a1b3ad8411f9fa261a2bf3a45aea9da292e9c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17099
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2023-05-05 00:10:11 +00:00
..
nvme_ctrlr_cmd.c nvme: add SPDK_NVME_IDENTIFY_BUFLEN 2023-01-06 15:54:18 +00:00
nvme_ctrlr_ocssd_cmd.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_ctrlr.c nvme: The upper layer controls DNR dynamically for I/O aborts 2023-05-05 00:10:11 +00:00
nvme_cuse.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_fabric.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_io_msg.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_ns_cmd.c test/unit: add unit test for IO management commands 2023-03-09 23:22:41 +00:00
nvme_ns_ocssd_cmd.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_ns.c nvme: support 64 LBA formats for NVM and ZNS command set 2023-02-15 10:37:56 +00:00
nvme_opal.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_pcie_common.c UT/nvme_pcie_common:test for nvme_pcie_poll_group_get_stats 2022-11-21 12:00:55 +00:00
nvme_pcie.c nvme/pcie: validate that mptr is iova contiguous 2022-11-23 08:23:15 +00:00
nvme_poll_group.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_qpair.c nvme: The upper layer controls DNR dynamically for I/O aborts 2023-05-05 00:10:11 +00:00
nvme_quirks.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme_rdma.c nvme_rdma: Move responses from rdma_qpair into a separate object 2023-01-17 23:53:01 +00:00
nvme_tcp.c nvmf/tcp: Wait for PDUs to release when closing a qpair 2023-04-10 17:58:48 +00:00
nvme_transport.c nvme: The upper layer controls DNR dynamically for I/O aborts 2023-05-05 00:10:11 +00:00
nvme.c nvme: add num_outstanding_reqs in spdk_nvme_qpair 2023-01-09 14:49:11 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00