Skip to contentSkip to conversation

virtio-net: fix speed, duplex

PATCH New Michael S. Tsirkin 1 participant 1 message Sep 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-net: fix speed, duplex

Speed values have an extra "f" - they are 32 bit, not 36 bit. Duplex is implemented in Linux and QEMU as 0x01 for full duplex and 0x00 for half duplex.

---
 content.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
content.tex +2 -2
index bc26674..47a4c6a 100644
@@ -2994,9 +2994,9 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device
 exist if VIRTIO_NET_F_SPEED_DUPLEX is set.
 
 \field{speed} contains the device speed, in units of 1 MBit per
-second, 0 to 0x7ffffffff, or 0xfffffffff for unknown speed.
+second, 0 to 0x7fffffff, or 0xffffffff for unknown speed.
 
-\field{duplex} has the values of 0x00 for full duplex, 0x01 for
+\field{duplex} has the values of 0x01 for full duplex, 0x00 for
 half duplex and 0xff for unknown duplex state.
 
 Both \field{speed} and \field{duplex} can change, thus the driver
Signature · 7 lines
MST


---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that 
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php