OSDN Git Service

Refactor virtio-net to use generic get_vhost_net
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Tue, 27 May 2014 12:05:08 +0000 (15:05 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:55 +0000 (16:41 +0300)
commited8b4afe5ff290ae119237e4fa2142e9f1832230
tree79e24307ec82fc5c7ce0b4dee3fb26f015dc6b37
parent212d69f25e8bff3e9dc8af6ca30a6556094fc5a5
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>
hw/net/vhost_net.c
hw/net/virtio-net.c
include/net/vhost_net.h