From 790b99e863355dd2112217c624fae740eb7fcfc3 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 17 May 2016 14:17:20 -0700 Subject: [PATCH] nvme: reorder qprio in spdk_nvme_qpair for packing This lets spdk_nvme_qpair fit in 128 bytes exactly. Change-Id: I7c42582f22ece72a7f1d651468e63d4fe05babd6 Signed-off-by: Daniel Verkamp --- lib/nvme/nvme_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nvme/nvme_internal.h b/lib/nvme/nvme_internal.h index 7b6883d82..808066ffb 100644 --- a/lib/nvme/nvme_internal.h +++ b/lib/nvme/nvme_internal.h @@ -310,6 +310,8 @@ struct spdk_nvme_qpair { * Fields below this point should not be touched on the normal I/O happy path. */ + uint8_t qprio; + struct spdk_nvme_ctrlr *ctrlr; /* List entry for spdk_nvme_ctrlr::free_io_qpairs and active_io_qpairs */ @@ -317,8 +319,6 @@ struct spdk_nvme_qpair { uint64_t cmd_bus_addr; uint64_t cpl_bus_addr; - - uint8_t qprio; }; struct spdk_nvme_ns {