root / hw / vhost_net.h @ 37f32f0f
History | View | Annotate | Download (574 Bytes)
1 | d5970055 | Michael S. Tsirkin | #ifndef VHOST_NET_H
|
---|---|---|---|
2 | d5970055 | Michael S. Tsirkin | #define VHOST_NET_H
|
3 | d5970055 | Michael S. Tsirkin | |
4 | d5970055 | Michael S. Tsirkin | #include "net.h" |
5 | d5970055 | Michael S. Tsirkin | |
6 | d5970055 | Michael S. Tsirkin | struct vhost_net;
|
7 | d5970055 | Michael S. Tsirkin | typedef struct vhost_net VHostNetState; |
8 | d5970055 | Michael S. Tsirkin | |
9 | 5430a28f | mst@redhat.com | VHostNetState *vhost_net_init(VLANClientState *backend, int devfd, bool force); |
10 | d5970055 | Michael S. Tsirkin | |
11 | 5430a28f | mst@redhat.com | bool vhost_net_query(VHostNetState *net, VirtIODevice *dev);
|
12 | d5970055 | Michael S. Tsirkin | int vhost_net_start(VHostNetState *net, VirtIODevice *dev);
|
13 | d5970055 | Michael S. Tsirkin | void vhost_net_stop(VHostNetState *net, VirtIODevice *dev);
|
14 | d5970055 | Michael S. Tsirkin | |
15 | d5970055 | Michael S. Tsirkin | void vhost_net_cleanup(VHostNetState *net);
|
16 | d5970055 | Michael S. Tsirkin | |
17 | d5970055 | Michael S. Tsirkin | unsigned vhost_net_get_features(VHostNetState *net, unsigned features); |
18 | d5970055 | Michael S. Tsirkin | void vhost_net_ack_features(VHostNetState *net, unsigned features); |
19 | d5970055 | Michael S. Tsirkin | |
20 | d5970055 | Michael S. Tsirkin | #endif |