diff options
author | Heinz Graalfs <graalfs@linux.vnet.ibm.com> | 2013-10-29 00:09:48 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-10-29 01:58:12 +0100 |
commit | 5b1bf7cb673ade0ab5c75f200dce911d9fb91c21 (patch) | |
tree | c90e760edaf94d91d94ff366e881fe5562e4478d /drivers/net/virtio_net.c | |
parent | virtio_ring: change host notification API (diff) | |
download | linux-5b1bf7cb673ade0ab5c75f200dce911d9fb91c21.tar.xz linux-5b1bf7cb673ade0ab5c75f200dce911d9fb91c21.zip |
virtio_ring: let virtqueue_{kick()/notify()} return a bool
virtqueue_{kick()/notify()} should exploit the new host notification API.
If the notify call returned with a negative value the host kick failed
(e.g. a kick triggered after a device was hot-unplugged). In this case
the virtqueue is set to 'broken' and false is returned, otherwise true.
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions