5 #include "hw/virtio/vhost-backend.h"
8 typedef struct vhost_net VHostNetState
;
10 typedef struct VhostNetOptions
{
11 VhostBackendType backend_type
;
12 NetClientState
*net_backend
;
17 struct vhost_net
*vhost_net_init(VhostNetOptions
*options
);
19 bool vhost_net_query(VHostNetState
*net
, VirtIODevice
*dev
);
20 int vhost_net_start(VirtIODevice
*dev
, NetClientState
*ncs
, int total_queues
);
21 void vhost_net_stop(VirtIODevice
*dev
, NetClientState
*ncs
, int total_queues
);
23 void vhost_net_cleanup(VHostNetState
*net
);
25 unsigned vhost_net_get_features(VHostNetState
*net
, unsigned features
);
26 void vhost_net_ack_features(VHostNetState
*net
, unsigned features
);
28 bool vhost_net_virtqueue_pending(VHostNetState
*net
, int n
);
29 void vhost_net_virtqueue_mask(VHostNetState
*net
, VirtIODevice
*dev
,
31 VHostNetState
*get_vhost_net(NetClientState
*nc
);