summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvme/nvme_sysctl.c
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2012-10-18 00:37:11 +0000
committerjimharris <jimharris@FreeBSD.org>2012-10-18 00:37:11 +0000
commit3d2744150b6626e65971d96f6cd57f799b0b55d2 (patch)
treec70cf24cbfa2dea6c2fe9f6a2d46f94ae0202254 /sys/dev/nvme/nvme_sysctl.c
parentc070c3fe817d16552546a6954df85a4731b3e8be (diff)
downloadFreeBSD-src-3d2744150b6626e65971d96f6cd57f799b0b55d2.zip
FreeBSD-src-3d2744150b6626e65971d96f6cd57f799b0b55d2.tar.gz
Merge struct nvme_prp_list into struct nvme_tracker.
This simplifies the driver significantly where it is constructing commands to be submitted to hardware. By reducing the number of PRPs (NVMe parlance for SGE) from 128 to 32, it ensures we do not allocate too much memory for more common smaller I/O sizes, while still supporting up to 128KB I/O sizes. This also paves the way for pre-allocation of nvme_tracker objects for each queue which will simplify the I/O path even further. Sponsored by: Intel
Diffstat (limited to 'sys/dev/nvme/nvme_sysctl.c')
-rw-r--r--sys/dev/nvme/nvme_sysctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/nvme/nvme_sysctl.c b/sys/dev/nvme/nvme_sysctl.c
index ecf8b6e..9cfdcdd 100644
--- a/sys/dev/nvme/nvme_sysctl.c
+++ b/sys/dev/nvme/nvme_sysctl.c
@@ -195,9 +195,6 @@ nvme_sysctl_initialize_queue(struct nvme_qpair *qpair,
SYSCTL_ADD_UINT(ctrlr_ctx, que_list, OID_AUTO, "num_tr",
CTLFLAG_RD, &qpair->num_tr, 0,
"Number of trackers allocated");
- SYSCTL_ADD_UINT(ctrlr_ctx, que_list, OID_AUTO, "num_prp_list",
- CTLFLAG_RD, &qpair->num_prp_list, 0,
- "Number of PRP lists allocated");
SYSCTL_ADD_UINT(ctrlr_ctx, que_list, OID_AUTO, "sq_head",
CTLFLAG_RD, &qpair->sq_head, 0,
"Current head of submission queue (as observed by driver)");
OpenPOWER on IntegriCloud