]> git.proxmox.com Git - qemu.git/blame - include/net/vhost_net.h
rng-egd: remove redundant free
[qemu.git] / include / net / vhost_net.h
CommitLineData
d5970055
MT
1#ifndef VHOST_NET_H
2#define VHOST_NET_H
3
1422e32d 4#include "net/net.h"
d5970055
MT
5
6struct vhost_net;
7typedef struct vhost_net VHostNetState;
8
4e68f7a0 9VHostNetState *vhost_net_init(NetClientState *backend, int devfd, bool force);
d5970055 10
5430a28f 11bool vhost_net_query(VHostNetState *net, VirtIODevice *dev);
a9f98bb5
JW
12int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, int total_queues);
13void vhost_net_stop(VirtIODevice *dev, NetClientState *ncs, int total_queues);
d5970055
MT
14
15void vhost_net_cleanup(VHostNetState *net);
16
17unsigned vhost_net_get_features(VHostNetState *net, unsigned features);
18void vhost_net_ack_features(VHostNetState *net, unsigned features);
19
f56a1247
MT
20bool vhost_net_virtqueue_pending(VHostNetState *net, int n);
21void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev,
22 int idx, bool mask);
d5970055 23#endif