Skip to contentSkip to conversation

virtio-net: fix virtqueue numbering error

PATCH Superseded Cornelia Huck 2 participants 3 messages Jul 11, 2017 – Jul 12, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-net: fix virtqueue numbering error

receiveq(n) is at position 2(n-1)+1. Same error for transmitq(n) and controlq.

VIRTIO-161

---
 content.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
content.tex +3 -3
index d8bde3a..2319729 100644
@@ -3064,9 +3064,9 @@ features.
 \item[0] receiveq1
 \item[1] transmitq1
 \item[\ldots]
-\item[2N] receiveqN
-\item[2N+1] transmitqN
-\item[2N+2] controlq
+\item[2(N-1)] receiveqN
+\item[2(N-1)+1] transmitqN
+\item[2(N-1)+2] controlq
 \end{description}
 
  N=1 if VIRTIO_NET_F_MQ is not negotiated, otherwise N is set by
Signature · 7 lines
2.13.0


---------------------------------------------------------------------
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 
#1 lore raw
Quoted 15 lines · Cornelia Huck

receiveq(n) is at position 2(n-1)+1. Same error for transmitq(n) and controlq.

VIRTIO-161

---
 content.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
content.tex +0 -0
index d8bde3a..2319729 100644

content.tex features. · line 3069

Quoted 9 lines
content.tex +3 -3
@@ -3064,9 +3064,9 @@ features.
 \item[0] receiveq1
 \item[1] transmitq1
 \item[\ldots]
-\item[2N] receiveqN
-\item[2N+1] transmitqN
-\item[2N+2] controlq
+\item[2(N-1)] receiveqN
+\item[2(N-1)+1] transmitqN
+\item[2(N-1)+2] controlq

There is still only one controlq overall. Therefore I suggest:

\item[2N] controlq

This seems clearer to me since "\item[2(N-1)+2] controlq" makes it look like the controlq is repeated along with rx and tx queues.

Stefan

#2 lore raw
Quoted 28 lines · On Wed, 12 Jul 2017 10:35:20 +0100 Stefan Hajnoczi <[email protected]> wrote:
Quoted 15 lines · Cornelia Huck

receiveq(n) is at position 2(n-1)+1. Same error for transmitq(n) and controlq.

VIRTIO-161

---
 content.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
content.tex +0 -0
index d8bde3a..2319729 100644

content.tex features. · line 3069

Quoted 9 lines
content.tex +3 -3
@@ -3064,9 +3064,9 @@ features.
 \item[0] receiveq1
 \item[1] transmitq1
 \item[\ldots]
-\item[2N] receiveqN
-\item[2N+1] transmitqN
-\item[2N+2] controlq
+\item[2(N-1)] receiveqN
+\item[2(N-1)+1] transmitqN
+\item[2(N-1)+2] controlq  

There is still only one controlq overall. Therefore I suggest:

Quoted 4 lines

\item[2N] controlq

This seems clearer to me since "\item[2(N-1)+2] controlq" makes it look like the controlq is repeated along with rx and tx queues.

Indeed, that is easier to parse. Will update.

---------------------------------------------------------------------
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