]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-net: unify vhost-net start/stop
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Sep 2010 16:41:30 +0000 (18:41 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 12 Oct 2010 21:09:35 +0000 (16:09 -0500)
commit286409ad631f3c5df737d0693785ef67dcfd8ba7
tree7166834a71a92af016f06bad787c4e6b68556cfa
parent8006040d47555cba456c9cc43374fba9e04e3bcc
virtio-net: unify vhost-net start/stop

Move all of vhost-net start/stop logic to a single routine,
and call it from everywhere.

Additionally, start/stop vhost-net on link up/down:
we should not transmit anything if user asked us to
put the link down.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
hw/virtio-net.c