diff options
author | jimharris <jimharris@FreeBSD.org> | 2016-01-11 17:31:18 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2016-01-11 17:31:18 +0000 |
commit | 613dac6224f7c02dd5cd7f54c047c7ff4ab3c822 (patch) | |
tree | 8778692a085c1cbb85710889abae7659c8c881e4 /sys/dev/nvme/nvme_private.h | |
parent | 37703e3991958133eec6c9c0d632d2fe1a4d0bc9 (diff) | |
download | FreeBSD-src-613dac6224f7c02dd5cd7f54c047c7ff4ab3c822.zip FreeBSD-src-613dac6224f7c02dd5cd7f54c047c7ff4ab3c822.tar.gz |
MFC r293328:
nvme: do not revert to single I/O queue when per-CPU queues not available
Previously nvme(4) would revert to a single I/O queue if it could not
allocate enought interrupt vectors or NVMe submission/completion queues
to have one I/O queue per core. This patch determines how to utilize a
smaller number of available interrupt vectors, and assigns (as closely
as possible) an equal number of cores to each associated I/O queue.
Diffstat (limited to 'sys/dev/nvme/nvme_private.h')
-rw-r--r-- | sys/dev/nvme/nvme_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h index 7e049ee..3330711 100644 --- a/sys/dev/nvme/nvme_private.h +++ b/sys/dev/nvme/nvme_private.h @@ -265,6 +265,7 @@ struct nvme_controller { uint32_t enable_aborts; uint32_t num_io_queues; + uint32_t num_cpus_per_ioq; /* Fields for tracking progress during controller initialization. */ struct intr_config_hook config_hook; |