7dff719f7e
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>