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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-03-28 08:50:49 -07:00
parent 982095e51f
commit 24119894f4

View File

@ -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");