From 6779cafec5cbbffc6f6eb6ba3ef7f213124fa2b5 Mon Sep 17 00:00:00 2001
From: rusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>
Date: Thu, 23 Jan 2014 01:58:05 +0000
Subject: Michael's patch adding MQ support added some u16s; they are u16 in
 legacy mode but should be le16 for modern devices.

Signed-off-by: Rusty Russell <rusty@au1.ibm.com>

git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@190 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
---
 content.tex | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'content.tex')

diff --git a/content.tex b/content.tex
index 803615d..b038b0c 100644
--- a/content.tex
+++ b/content.tex
@@ -2440,12 +2440,12 @@ is negotiated.  Legal values for this field are 1 to 0x8000.
 	struct virtio_net_config {
 		u8 mac[6];
 		le16 status;
-		u16 max_virtqueue_pairs;
+		le16 max_virtqueue_pairs;
 	};
 \end{lstlisting}
 
 \subsubsection{Legacy Interface: Device configuration layout}\label{sec:Device Types / Network Device / Device configuration layout / Legacy Interface: Device configuration layout}
-For legacy devices, the status field in struct virtio_net_config is the
+For legacy devices, the status and max_virtqueue_pairs fields in struct virtio_net_config are the
 native endian of the guest rather than (necessarily) little-endian.
 
 
@@ -2851,7 +2851,7 @@ depending on the packet flow.
 
 \begin{lstlisting}
 	struct virtio_net_ctrl_mq {
-		u16 virtqueue_pairs;
+		le16 virtqueue_pairs;
 	};
 
 	#define VIRTIO_NET_CTRL_MQ    4
@@ -2884,6 +2884,10 @@ transmitq1..transmitqN (i.e. other than transmitq0); accordingly,
 the driver MUST NOT transmit new packets on virtqueues other than
 transmitq0.
 
+\subparagraph{Legacy Interface: Automatic receive steering in multiqueue mode}\label{sec:Device Types / Network Device / Device Operation / Control Virtqueue / Automatic receive steering in multiqueue mode / Legacy Interface: Automatic receive steering in multiqueue mode}
+For legacy devices, the virtqueue_paris field is in the
+native endian of the guest rather than (necessarily) little-endian.
+
 \paragraph{Offloads State Configuration}\label{sec:Device Types / Network Device / Device Operation / Control Virtqueue / Offloads State Configuration}
 
 If the VIRTIO_NET_F_CTRL_GUEST_OFFLOADS feature is negotiated, the driver can
-- 
cgit v1.2.3

