virtio: modify vring_init and vring_size to take account of the layout containing...
commit00b894e874581f6b388c5817d4d5546c22cf9640
authorWang Sheng-Hui <shhuiw@gmail.com>
Mon, 29 Aug 2011 07:55:59 +0000 (29 15:55 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 2 Nov 2011 01:10:59 +0000 (2 11:40 +1030)
tree18cf5e1b2067986b36996dc75321cea7c9935ac2
parent5f41f8bfc95e84536207b2af8918f2e674164a42
virtio: modify vring_init and vring_size to take account of the layout containing *_event_idx

Based on the layout description in the comments, take account of
the *_event_idx in functions vring_init and vring_size.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_ring.h