Statistics
| Branch: | Revision:

root / hw / vhost_net.h @ cc9577cf

History | View | Annotate | Download (501 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 d5970055 Michael S. Tsirkin
VHostNetState *vhost_net_init(VLANClientState *backend, int devfd);
10 d5970055 Michael S. Tsirkin
11 d5970055 Michael S. Tsirkin
int vhost_net_start(VHostNetState *net, VirtIODevice *dev);
12 d5970055 Michael S. Tsirkin
void vhost_net_stop(VHostNetState *net, VirtIODevice *dev);
13 d5970055 Michael S. Tsirkin
14 d5970055 Michael S. Tsirkin
void vhost_net_cleanup(VHostNetState *net);
15 d5970055 Michael S. Tsirkin
16 d5970055 Michael S. Tsirkin
unsigned vhost_net_get_features(VHostNetState *net, unsigned features);
17 d5970055 Michael S. Tsirkin
void vhost_net_ack_features(VHostNetState *net, unsigned features);
18 d5970055 Michael S. Tsirkin
19 d5970055 Michael S. Tsirkin
#endif