The idx of the avail ring must always grow
commit9afd2a817f65f70762a4e0891b615d09b77f3a9a
authorJakub Jermar <jakub@jermar.eu>
Fri, 22 Jun 2018 20:27:31 +0000 (22 22:27 +0200)
committerJakub Jermar <jakub@jermar.eu>
Fri, 22 Jun 2018 20:27:31 +0000 (22 22:27 +0200)
tree472acd1b5cb25785b0374c38c7da4f21dacaa479
parentb8ef198b865bb1e67719113decaabfc4685fe25c
The idx of the avail ring must always grow

The index cannot wrap around the queue size or it would be 0 when all
buffers are made available in the queue. Instead, the standard mandates
idx always grows, naturally wrapping at 65536.
uspace/lib/virtio/virtio.c