Skip to contentSkip to conversation

virtio-net: fix virtqueue numbering error

PATCH In review Cornelia Huck 3 participants 3 messages Jul 12, 2017 – Jul 17, 2017

lore
Share & tools
lore
#0 lore raw

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

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

VIRTIO-161

---
v1->v2: fix description
use 2N for controlq [Stefan]

---
 content.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
content.tex +3 -3
index d8bde3a..19f84c8 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[2N] 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 
Reviewed-by on v2 1/1
#2 lore raw
In reply to Cornelia Huck
Quoted 21 lines · Cornelia Huck

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

VIRTIO-161

---
v1->v2: fix description
use 2N for controlq [Stefan]

---
 content.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
content.tex +0 -0
index d8bde3a..19f84c8 100644
@@ -3064,9 +3064,9 @@ features.
 \item[0] receiveq1
 \item[1] transmitq1

content.tex features. · line 3072

Quoted 10 lines
content.tex +3 -3
 \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[2N] controlq
 \end{description}
 
  N=1 if VIRTIO_NET_F_MQ is not negotiated, otherwise N is set by

I would actually prefer
+\item[2N-2] receiveqN
+\item[2N-1] transmitqN
+\item[2N] controlq
as I don't think we have to spell out that the n-th tq is at the index 2n + 1 and the n-th rq is at the index of 2n at all and especially not in this listing.

But, I'm fine with this too.

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