diff options
author | Christoph Hellwig <hch@lst.de> | 2017-07-14 11:12:09 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-07-20 08:41:56 -0600 |
commit | dc1a0afbacaeaced8f5679a99047c0467f1099e9 (patch) | |
tree | 1ae408d5d2c5cd0c5bd2d28a3e479626e32a90ee /include | |
parent | 768516894fb2a0addee6b802af0f8789c0b4c322 (diff) | |
download | lwn-dc1a0afbacaeaced8f5679a99047c0467f1099e9.tar.gz lwn-dc1a0afbacaeaced8f5679a99047c0467f1099e9.zip |
nvme: fix byte swapping in the streams code
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvme.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 6b8ee9e628e1..bc74da018bdc 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -963,14 +963,14 @@ struct nvme_dbbuf { }; struct streams_directive_params { - __u16 msl; - __u16 nssa; - __u16 nsso; + __le16 msl; + __le16 nssa; + __le16 nsso; __u8 rsvd[10]; - __u32 sws; - __u16 sgs; - __u16 nsa; - __u16 nso; + __le32 sws; + __le16 sgs; + __le16 nsa; + __le16 nso; __u8 rsvd2[6]; }; |