commit | 9e380825ab3f5176f65306c4ac119fd23634ce03 | [log] [tgz] |
---|---|---|
author | Shirley Ma <mashirle@us.ibm.com> | Wed Jul 20 10:23:12 2011 -0700 |
committer | Michael S. Tsirkin <mst@redhat.com> | Thu Jul 21 10:48:27 2011 +0300 |
tree | 4fdf3f2609da5ee3222103682f3ce10c976353d0 | |
parent | c047e5f3170c2595e66ed67f87cec01afd717212 [diff] |
vhost: handle wrap around in # of bufs math The meth for calculating the # of outstanding buffers gives incorrect results when vq->upend_idx wraps around zero. Fix that. Signed-off-by: Shirley Ma <xma@us.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>