]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: modify vring_init and vring_size to take account of the layout containing...
authorWang Sheng-Hui <shhuiw@gmail.com>
Mon, 29 Aug 2011 07:55:59 +0000 (15:55 +0800)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Aug 2011 00:47:03 +0000 (10:47 +1000)
commit5e7a6e8040d4fec2133df61647d8026ceb866fb9
treeeb8f2d1abe4c464193f9f90ea7777f8b8f283180
parentbbdb3ec99de2c950bb16012cf7a4582b9e45a8aa
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