]> 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)
commit9b3bbc35a9a63e03b2b596a79b2c90310a24b805
treeddbe8a6688700a93fd7a53d7b16444a40e82729d
parentd3da407c64ef24bde934d6bb4d06aaa7038c4096
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