commit | 3b720b8c865098c49c1570b6b5c7832bcfa6e6c2 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Thu Jan 12 15:44:43 2012 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Thu Jan 12 15:44:43 2012 +1030 |
tree | 7580908e53fb78ddc20945075d7f25408a6325fb | |
parent | 41f0377f73039ca6fe97a469d1941a89cd9757f1 [diff] |
virtio: avoid modulus operation. Since we know vq->vring.num is a power of 2, modulus is lazy (it's asserted in vring_new_virtqueue()). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>