virtio: explicit enable_cb/disable_cb rather than callback return.
commit18445c4d501b9ab4336f66ef46b092661ddaf336
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 5 Feb 2008 04:49:57 +0000 (4 23:49 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:49:58 +0000 (4 23:49 +1100)
tree9d23185f207d912942890cf047d1d3200806b401
parenta586d4f6016f7139d8c26df0e6927131168d3b5b
virtio: explicit enable_cb/disable_cb rather than callback return.

It seems that virtio_net wants to disable callbacks (interrupts) before
calling netif_rx_schedule(), so we can't use the return value to do so.

Rename "restart" to "cb_enable" and introduce "cb_disable" hook: callback
now returns void, rather than a boolean.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c
drivers/lguest/lguest_device.c
drivers/net/virtio_net.c
drivers/virtio/virtio_ring.c
include/linux/virtio.h
include/linux/virtio_config.h
include/linux/virtio_ring.h
net/9p/trans_virtio.c