mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
212d69f25e
commit
ed8b4afe5f
3 changed files with 36 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue