* [virtio] [PATCH v2] virtio-net: fix virtqueue numbering error
@ 2017-07-12 9:50 Cornelia Huck
2017-07-14 11:28 ` [virtio] Re: [virtio-dev] " Stefan Hajnoczi
2017-07-17 15:21 ` Halil Pasic
0 siblings, 2 replies; 3+ messages in thread
From: Cornelia Huck @ 2017-07-12 9:50 UTC (permalink / raw)
To: virtio, virtio-dev
receiveq(n) is at position 2(n-1), not 2n. Same error for transmitq(n)
and controlq.
VIRTIO-161
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
v1->v2: fix description
use 2N for controlq [Stefan]
---
content.tex | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/content.tex b/content.tex
index d8bde3a..19f84c8 100644
--- a/content.tex
+++ b/content.tex
@@ -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
--
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [virtio] Re: [virtio-dev] [PATCH v2] virtio-net: fix virtqueue numbering error
2017-07-12 9:50 [virtio] [PATCH v2] virtio-net: fix virtqueue numbering error Cornelia Huck
@ 2017-07-14 11:28 ` Stefan Hajnoczi
2017-07-17 15:21 ` Halil Pasic
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2017-07-14 11:28 UTC (permalink / raw)
To: Cornelia Huck; +Cc: virtio, virtio-dev
[-- Attachment #1: Type: text/plain, Size: 443 bytes --]
On Wed, Jul 12, 2017 at 11:50:16AM +0200, Cornelia Huck wrote:
> receiveq(n) is at position 2(n-1), not 2n. Same error for transmitq(n)
> and controlq.
>
> VIRTIO-161
>
> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
> ---
> v1->v2: fix description
> use 2N for controlq [Stefan]
> ---
> content.tex | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [virtio] Re: [virtio-dev] [PATCH v2] virtio-net: fix virtqueue numbering error
2017-07-12 9:50 [virtio] [PATCH v2] virtio-net: fix virtqueue numbering error Cornelia Huck
2017-07-14 11:28 ` [virtio] Re: [virtio-dev] " Stefan Hajnoczi
@ 2017-07-17 15:21 ` Halil Pasic
1 sibling, 0 replies; 3+ messages in thread
From: Halil Pasic @ 2017-07-17 15:21 UTC (permalink / raw)
To: Cornelia Huck, virtio, virtio-dev
On 07/12/2017 11:50 AM, Cornelia Huck wrote:
> receiveq(n) is at position 2(n-1), not 2n. Same error for transmitq(n)
> and controlq.
>
> VIRTIO-161
>
> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
> ---
> v1->v2: fix description
> use 2N for controlq [Stefan]
> ---
> content.tex | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/content.tex b/content.tex
> index d8bde3a..19f84c8 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -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
>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-17 15:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12 9:50 [virtio] [PATCH v2] virtio-net: fix virtqueue numbering error Cornelia Huck
2017-07-14 11:28 ` [virtio] Re: [virtio-dev] " Stefan Hajnoczi
2017-07-17 15:21 ` Halil Pasic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox