[virtio-spec PATCH 1/5] Receiving Used Buffers: fix typo in "ring empty" condition in example code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Laszlo Ersek <lersek@xxxxxxxxxx>
---
 virtio-spec.lyx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtio-spec.lyx b/virtio-spec.lyx
index 6e188d0..41a763c 100644
--- a/virtio-spec.lyx
+++ b/virtio-spec.lyx
@@ -2942,7 +2942,7 @@ for (;;) {
 
 \begin_layout Plain Layout
 
-    if (vq->last_seen_used != vring->used.idx) {
+    if (vq->last_seen_used == vring->used.idx) {
 \end_layout
 
 \begin_layout Plain Layout
@@ -2957,7 +2957,7 @@ for (;;) {
 
 \begin_layout Plain Layout
 
-		if (vq->last_seen_used != vring->used.idx)
+		if (vq->last_seen_used == vring->used.idx)
 \end_layout
 
 \begin_layout Plain Layout
-- 
1.7.1


_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization




[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux