1d5970055SMichael S. Tsirkin #ifndef VHOST_NET_H 2d5970055SMichael S. Tsirkin #define VHOST_NET_H 3d5970055SMichael S. Tsirkin 4*1422e32dSPaolo Bonzini #include "net/net.h" 5d5970055SMichael S. Tsirkin 6d5970055SMichael S. Tsirkin struct vhost_net; 7d5970055SMichael S. Tsirkin typedef struct vhost_net VHostNetState; 8d5970055SMichael S. Tsirkin 94e68f7a0SStefan Hajnoczi VHostNetState *vhost_net_init(NetClientState *backend, int devfd, bool force); 10d5970055SMichael S. Tsirkin 115430a28fSmst@redhat.com bool vhost_net_query(VHostNetState *net, VirtIODevice *dev); 12d5970055SMichael S. Tsirkin int vhost_net_start(VHostNetState *net, VirtIODevice *dev); 13d5970055SMichael S. Tsirkin void vhost_net_stop(VHostNetState *net, VirtIODevice *dev); 14d5970055SMichael S. Tsirkin 15d5970055SMichael S. Tsirkin void vhost_net_cleanup(VHostNetState *net); 16d5970055SMichael S. Tsirkin 17d5970055SMichael S. Tsirkin unsigned vhost_net_get_features(VHostNetState *net, unsigned features); 18d5970055SMichael S. Tsirkin void vhost_net_ack_features(VHostNetState *net, unsigned features); 19d5970055SMichael S. Tsirkin 20d5970055SMichael S. Tsirkin #endif 21