Home
last modified time | relevance | path

Searched refs:vhost_net (Results 1 – 15 of 15) sorted by relevance

/qemu/hw/net/
H A Dvhost_net-stub.c28 struct vhost_net *vhost_net_init(VhostNetOptions *options) in vhost_net_init()
46 void vhost_net_cleanup(struct vhost_net *net) in vhost_net_cleanup()
50 uint64_t vhost_net_get_features(struct vhost_net *net, uint64_t features) in vhost_net_get_features()
55 int vhost_net_get_config(struct vhost_net *net, uint8_t *config, in vhost_net_get_config()
60 int vhost_net_set_config(struct vhost_net *net, const uint8_t *data, in vhost_net_set_config()
66 void vhost_net_ack_features(struct vhost_net *net, uint64_t features) in vhost_net_ack_features()
94 int vhost_net_notify_migration_done(struct vhost_net *net, char* mac_addr) in vhost_net_notify_migration_done()
109 int vhost_net_set_mtu(struct vhost_net *net, uint16_t mtu) in vhost_net_set_mtu()
H A Dvhost_net.c99 static const int *vhost_net_get_feature_bits(struct vhost_net *net) in vhost_net_get_feature_bits()
124 uint64_t vhost_net_get_features(struct vhost_net *net, uint64_t features) in vhost_net_get_features()
129 int vhost_net_get_config(struct vhost_net *net, uint8_t *config, in vhost_net_get_config()
134 int vhost_net_set_config(struct vhost_net *net, const uint8_t *data, in vhost_net_set_config()
140 void vhost_net_ack_features(struct vhost_net *net, uint64_t features) in vhost_net_ack_features()
170 struct vhost_net *net; in vhost_net_disable_notifiers_nvhosts()
230 struct vhost_net *net; in vhost_net_enable_notifiers()
318 struct vhost_net *vhost_net_init(VhostNetOptions *options) in vhost_net_init()
322 struct vhost_net *net = g_new0(struct vhost_net, 1); in vhost_net_init()
397 static void vhost_net_set_vq_index(struct vhost_net *net, int vq_index, in vhost_net_set_vq_index()
[all …]
H A Dmeson.build53 …ystem_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'), if_false: files('vhost_net-…
55 system_ss.add(files('vhost_net-stub.c'))
H A Dvirtio-net.c3347 struct vhost_net *net; in virtio_net_get_vhost()
/qemu/net/
H A Dvhost-user.c29 VHostNetState *vhost_net; member
39 return s->vhost_net; in vhost_user_get_vhost_net()
54 if (s->vhost_net) { in vhost_user_save_acked_features()
55 uint64_t features = vhost_net_get_acked_features(s->vhost_net); in vhost_user_save_acked_features()
72 if (s->vhost_net) { in vhost_user_stop()
74 vhost_net_cleanup(s->vhost_net); in vhost_user_stop()
83 struct vhost_net *net = NULL; in vhost_user_start()
114 if (s->vhost_net) { in vhost_user_start()
115 vhost_net_cleanup(s->vhost_net); in vhost_user_start()
116 g_free(s->vhost_net); in vhost_user_start()
[all …]
H A Dtap.c62 VHostNetState *vhost_net; member
293 if (s->vhost_net) { in tap_cleanup()
294 vhost_net_cleanup(s->vhost_net); in tap_cleanup()
295 g_free(s->vhost_net); in tap_cleanup()
296 s->vhost_net = NULL; in tap_cleanup()
380 s->vhost_net = NULL; in net_tap_fd_init()
716 s->vhost_net = vhost_net_init(&options); in net_init_tap_one()
717 if (!s->vhost_net) { in net_init_tap_one()
987 return s->vhost_net; in tap_get_vhost_net()
H A Dvhost-vdpa.c38 VHostNetState *vhost_net; member
139 return s->vhost_net; in vhost_vdpa_get_vhost_net()
175 static int vhost_vdpa_net_check_device_id(struct vhost_net *net) in vhost_vdpa_net_check_device_id()
193 struct vhost_net *net = NULL; in vhost_vdpa_add()
210 s->vhost_net = net; in vhost_vdpa_add()
229 if (s->vhost_net) { in vhost_vdpa_cleanup()
230 vhost_net_cleanup(s->vhost_net); in vhost_vdpa_cleanup()
231 g_free(s->vhost_net); in vhost_vdpa_cleanup()
232 s->vhost_net = NULL; in vhost_vdpa_cleanup()
261 features = vhost_net_get_features(s->vhost_net, features); in vhost_vdpa_has_ufo()
H A Dtap-win32.c707 struct vhost_net *tap_get_vhost_net(NetClientState *nc) in tap_get_vhost_net()
/qemu/include/net/
H A Dvhost_net.h7 struct vhost_net;
8 typedef struct vhost_net VHostNetState;
19 struct vhost_net *vhost_net_init(VhostNetOptions *options);
31 int vhost_net_get_config(struct vhost_net *net, uint8_t *config,
34 int vhost_net_set_config(struct vhost_net *net, const uint8_t *data,
48 int vhost_net_set_mtu(struct vhost_net *net, uint16_t mtu);
H A Dvhost-user.h14 struct vhost_net;
15 struct vhost_net *vhost_user_get_vhost_net(NetClientState *nc);
H A Dtap.h36 struct vhost_net;
37 struct vhost_net *tap_get_vhost_net(NetClientState *nc);
H A Dvhost-vdpa.h17 struct vhost_net *vhost_vdpa_get_vhost_net(NetClientState *nc);
/qemu/include/hw/virtio/
H A Dvhost.h142 struct vhost_net { struct
/qemu/
H A Dmeson_options.txt300 option('vhost_net', type: 'feature', value: 'auto', feature
H A Dmeson.build246 have_vhost_net_user = have_vhost_user and get_option('vhost_net').allowed()
247 have_vhost_net_vdpa = have_vhost_vdpa and get_option('vhost_net').allowed()
248 have_vhost_net_kernel = have_vhost_kernel and get_option('vhost_net').allowed()