Skip to content
Commit 3b720b8c authored by Rusty Russell's avatar Rusty Russell
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 41f0377f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment