Home
last modified time | relevance | path

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

/openbmc/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.build51 …ystem_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'), if_false: files('vhost_net-…
53 system_ss.add(files('vhost_net-stub.c'))
H A Dvirtio-net.c3957 struct vhost_net *net; in virtio_net_get_vhost()
/openbmc/qemu/net/
H A Dvhost-user.c28 VHostNetState *vhost_net; member
38 return s->vhost_net; in vhost_user_get_vhost_net()
53 if (s->vhost_net) { in vhost_user_save_acked_features()
54 uint64_t features = vhost_net_get_acked_features(s->vhost_net); in vhost_user_save_acked_features()
71 if (s->vhost_net) { in vhost_user_stop()
73 vhost_net_cleanup(s->vhost_net); in vhost_user_stop()
82 struct vhost_net *net = NULL; in vhost_user_start()
113 if (s->vhost_net) { in vhost_user_start()
114 vhost_net_cleanup(s->vhost_net); in vhost_user_start()
115 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()
237 if (s->vhost_net) { in vhost_vdpa_cleanup()
238 vhost_net_cleanup(s->vhost_net); in vhost_vdpa_cleanup()
239 g_free(s->vhost_net); in vhost_vdpa_cleanup()
240 s->vhost_net = NULL; in vhost_vdpa_cleanup()
268 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()
/openbmc/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);
/openbmc/linux/drivers/vhost/
H A Dnet.c132 struct vhost_net { struct
270 static void vhost_net_clear_ubuf_info(struct vhost_net *n) in vhost_net_clear_ubuf_info()
280 static int vhost_net_set_ubuf_info(struct vhost_net *n) in vhost_net_set_ubuf_info()
303 static void vhost_net_vq_reset(struct vhost_net *n) in vhost_net_vq_reset()
320 static void vhost_net_tx_packet(struct vhost_net *net) in vhost_net_tx_packet()
329 static void vhost_net_tx_err(struct vhost_net *net) in vhost_net_tx_err()
334 static bool vhost_net_tx_select_zcopy(struct vhost_net *net) in vhost_net_tx_select_zcopy()
359 static void vhost_zerocopy_signal_used(struct vhost_net *net, in vhost_zerocopy_signal_used()
424 static void vhost_net_disable_vq(struct vhost_net *n, in vhost_net_disable_vq()
435 static int vhost_net_enable_vq(struct vhost_net *n, in vhost_net_enable_vq()
[all …]
H A DMakefile2 obj-$(CONFIG_VHOST_NET) += vhost_net.o
3 vhost_net-y := net.o
H A DKconfig44 be called vhost_net.
/openbmc/qemu/include/hw/virtio/
H A Dvhost.h142 struct vhost_net { struct
/openbmc/qemu/
H A Dmeson_options.txt300 option('vhost_net', type: 'feature', value: 'auto', feature
H A Dmeson.build219 have_vhost_net_user = have_vhost_user and get_option('vhost_net').allowed()
220 have_vhost_net_vdpa = have_vhost_vdpa and get_option('vhost_net').allowed()
221 have_vhost_net_kernel = have_vhost_kernel and get_option('vhost_net').allowed()
/openbmc/linux/
H A Dopengrok1.0.log[all...]