mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
a586d4f601
commit
18445c4d50
8 changed files with 35 additions and 25 deletions
|
|
@ -191,7 +191,7 @@ static void lg_notify(struct virtqueue *vq)
|
|||
* So we provide devices with a "find virtqueue and set it up" function. */
|
||||
static struct virtqueue *lg_find_vq(struct virtio_device *vdev,
|
||||
unsigned index,
|
||||
bool (*callback)(struct virtqueue *vq))
|
||||
void (*callback)(struct virtqueue *vq))
|
||||
{
|
||||
struct lguest_device *ldev = to_lgdev(vdev);
|
||||
struct lguest_vq_info *lvq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue