Commit 24119894 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme_spec: fix SGL descriptor bitfield order



The type field is in the 4 high bits per the spec, but nvme_spec.h had it
in the low 4 bits.

Change-Id: I04dcb8f194bdcd28da803dd512b0ac5709ce773f
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 982095e5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -295,11 +295,12 @@ struct __attribute__((packed)) spdk_nvme_sgl_descriptor {
	uint32_t length;
	uint8_t reserved[3];

	/** SGL descriptor type specific */
	uint8_t type_specific : 4;

	/** SGL descriptor type */
	uint8_t type : 4;

	/** SGL descriptor type specific */
	uint8_t type_specific : 4;
};
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_sgl_descriptor) == 16, "Incorrect size");