commit | 18445c4d501b9ab4336f66ef46b092661ddaf336 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Mon Feb 04 23:49:57 2008 -0500 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Mon Feb 04 23:49:58 2008 +1100 |
tree | 9d23185f207d912942890cf047d1d3200806b401 | |
parent | a586d4f6016f7139d8c26df0e6927131168d3b5b [diff] |
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>