All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio] [PATCH] virtio-net: fix speed, duplex
@ 2020-09-01 14:23 Michael S. Tsirkin
  0 siblings, 0 replies; only message in thread
From: Michael S. Tsirkin @ 2020-09-01 14:23 UTC (permalink / raw)
  To: virtio-comment, virtio-dev; +Cc: virtio

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.

Fixes: https://github.com/oasis-tcs/virtio-spec/issues/75
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 content.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content.tex b/content.tex
index bc26674..47a4c6a 100644
--- a/content.tex
+++ b/content.tex
@@ -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
-- 
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 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-01 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 14:23 [virtio] [PATCH] virtio-net: fix speed, duplex Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.