]> Git Repo - qemu.git/blame - include/net/vhost_net.h
Merge remote-tracking branch 'remotes/kvaneesh/tags/for-upstream-signed' into staging
[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"
1a1bfac9 5#include "hw/virtio/vhost-backend.h"
d5970055
MT
6
7struct vhost_net;
8typedef struct vhost_net VHostNetState;
9
81647a65 10typedef struct VhostNetOptions {
1a1bfac9 11 VhostBackendType backend_type;
81647a65
NN
12 NetClientState *net_backend;
13 void *opaque;
81647a65
NN
14} VhostNetOptions;
15
e2051e9e 16uint64_t vhost_net_get_max_queues(VHostNetState *net);
81647a65 17struct vhost_net *vhost_net_init(VhostNetOptions *options);
d5970055 18
a9f98bb5
JW
19int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, int total_queues);
20void vhost_net_stop(VirtIODevice *dev, NetClientState *ncs, int total_queues);
d5970055
MT
21
22void vhost_net_cleanup(VHostNetState *net);
23
9a2ba823
CH
24uint64_t vhost_net_get_features(VHostNetState *net, uint64_t features);
25void vhost_net_ack_features(VHostNetState *net, uint64_t features);
d5970055 26
f56a1247
MT
27bool vhost_net_virtqueue_pending(VHostNetState *net, int n);
28void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev,
29 int idx, bool mask);
3e866365 30int vhost_net_notify_migration_done(VHostNetState *net, char* mac_addr);
ed8b4afe 31VHostNetState *get_vhost_net(NetClientState *nc);
7263a0ad
CO
32
33int vhost_set_vring_enable(NetClientState * nc, int enable);
d5970055 34#endif
This page took 0.50134 seconds and 4 git commands to generate.