Spdk/lib/nvme
Daniel Verkamp 7dff719f7e nvme: optimize layout of struct nvme_payload
Rather than storing nvme_payload::type explicitly, use the SGL reset
function pointer as an indicator: if reset_sgl_fn is non-NULL, then the
payload is an SGL type; otherwise it is a contiguous buffer type.

This eliminates the one-byte type member from struct nvme_payload,
making it an even 32 bytes instead of 33, allowing the removal of the
awkward packing inside struct nvme_request.

Change-Id: If2a32437a23fe14eb5287e096ac060067296f1dd
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/413175
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-06-01 21:01:42 +00:00
..
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
nvme_ctrlr_cmd.c nvme: add macros to populate nvme_payload 2018-06-01 21:01:42 +00:00
nvme_ctrlr.c nvme: update the NS identify data according to AER 2018-05-30 17:28:03 +00:00
nvme_internal.h nvme: optimize layout of struct nvme_payload 2018-06-01 21:01:42 +00:00
nvme_ns_cmd.c nvme: optimize layout of struct nvme_payload 2018-06-01 21:01:42 +00:00
nvme_ns.c nvme: update the NS identify data according to AER 2018-05-30 17:28:03 +00:00
nvme_pcie.c nvme: optimize layout of struct nvme_payload 2018-06-01 21:01:42 +00:00
nvme_qpair.c nvme: wrapper request completion callback into a function 2018-05-24 18:03:25 +00:00
nvme_quirks.c nvme: add a quirk for identify 0x2 2018-05-10 19:38:54 +00:00
nvme_rdma.c nvme: optimize layout of struct nvme_payload 2018-06-01 21:01:42 +00:00
nvme_transport.c scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvme: optimize layout of struct nvme_payload 2018-06-01 21:01:42 +00:00