Skip to contentSkip to conversation

virtio-blk: Fix data type of num_queues field

PATCH In review Parav Pandit 3 participants 3 messages May 21, 2024 – May 23, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-blk: Fix data type of num_queues field

Correct the endianness of num_queues field to be little endian.

---
 device-types/blk/description.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
device-types/blk/description.tex +1 -1
index f04c932..2712ada 100644
@@ -108,7 +108,7 @@ \subsection{Device configuration layout}\label{sec:Device Types / Block Device /
         } topology;
         u8 writeback;
         u8 unused0;
-        u16 num_queues;
+        le16 num_queues;
         le32 max_discard_sectors;
         le32 max_discard_seg;
         le32 discard_sector_alignment;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Parav Pandit
Quoted 8 lines · Parav Pandit

Correct the endianness of num_queues field to be little endian.

---
device-types/blk/description.tex | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 18 lines
device-types/blk/description.tex +1 -1
index f04c932..2712ada 100644
@@ -108,7 +108,7 @@ \subsection{Device configuration layout}\label{sec:Device Types / Block Device /
        } topology;
        u8 writeback;
        u8 unused0;
-        u16 num_queues;
+        le16 num_queues;
        le32 max_discard_sectors;
        le32 max_discard_seg;
        le32 discard_sector_alignment;
Signature · 1 line
2.34.1