]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: replace % with & on data path
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Nov 2015 11:34:44 +0000 (13:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Dec 2015 15:28:10 +0000 (17:28 +0200)
commit5fe1a2ebba0c4a0ec7f9deb3d8b22805b6d20660
treeddbe8a6688700a93fd7a53d7b16444a40e82729d
parent6d90108a312e2a196a69bdad71ec9f054347b21f
vhost: replace % with & on data path

We know vring num is a power of 2, so use &
to mask the high bits.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c