]> Git Repo - qemu.git/commit
vhost_net: cleanup start/stop condition
authorMichael S. Tsirkin <[email protected]>
Mon, 4 Aug 2014 12:12:39 +0000 (14:12 +0200)
committerMichael S. Tsirkin <[email protected]>
Tue, 2 Sep 2014 14:28:25 +0000 (17:28 +0300)
commit2d2507ef23d2a28eaeea5507ff4ec68657f1792f
tree8c13bbba7aedce771968fd1d27dd27b31a469173
parentb5a280c00840f4ebc2f40afb4f74e37e34d19f7c
vhost_net: cleanup start/stop condition

Checking vhost device internal state in vhost_net looks like
a layering violation since vhost_net does not
set this flag: it is set and tested by vhost.c.
There seems to be no reason to check this:
caller in virtio net uses its own flag,
vhost_started, to ensure vhost is started/stopped
as appropriate.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Amos Kong <[email protected]>
hw/net/vhost_net.c
This page took 0.022225 seconds and 4 git commands to generate.