diff options
author | Nikolay Nikolaev | 2014-05-27 14:05:08 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2014-06-19 15:41:55 +0200 |
commit | ed8b4afe5ff290ae119237e4fa2142e9f1832230 (patch) | |
tree | 79e24307ec82fc5c7ce0b4dee3fb26f015dc6b37 /include/net/vhost_net.h | |
parent | vhost_net should call the poll callback only when it is set (diff) | |
download | qemu-ed8b4afe5ff290ae119237e4fa2142e9f1832230.tar.gz qemu-ed8b4afe5ff290ae119237e4fa2142e9f1832230.tar.xz qemu-ed8b4afe5ff290ae119237e4fa2142e9f1832230.zip |
Refactor virtio-net to use generic get_vhost_net
This decouples virtio-net from the TAP netdev backend and allows support
for other backends to be implemented.
Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/net/vhost_net.h')
-rw-r--r-- | include/net/vhost_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/vhost_net.h b/include/net/vhost_net.h index 2d936bb5f5..e2bd61c784 100644 --- a/include/net/vhost_net.h +++ b/include/net/vhost_net.h @@ -20,4 +20,5 @@ void vhost_net_ack_features(VHostNetState *net, unsigned features); bool vhost_net_virtqueue_pending(VHostNetState *net, int n); void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev, int idx, bool mask); +VHostNetState *get_vhost_net(NetClientState *nc); #endif |