/openbmc/qemu/hw/net/ |
H A D | vhost_net-stub.c | 28 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 D | vhost_net.c | 174 struct vhost_net *net = g_new0(struct vhost_net, 1); in vhost_net_init() 256 static int vhost_net_start_one(struct vhost_net *net, in vhost_net_start_one() 360 struct vhost_net *net; in vhost_net_start() 467 void vhost_net_cleanup(struct vhost_net *net) in vhost_net_cleanup() 504 VHostNetState *vhost_net = 0; in get_vhost_net() local 512 vhost_net = tap_get_vhost_net(nc); in get_vhost_net() 522 vhost_net = vhost_user_get_vhost_net(nc); in get_vhost_net() 523 assert(vhost_net); in get_vhost_net() 528 vhost_net = vhost_vdpa_get_vhost_net(nc); in get_vhost_net() 529 assert(vhost_net); in get_vhost_net() [all …]
|
H A D | meson.build | 52 …ystem_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'), if_false: files('vhost_net-… 53 system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost_net-stub.c')) 55 system_ss.add(files('vhost_net-stub.c'))
|
H A D | virtio-net.c | 3871 struct vhost_net *net = get_vhost_net(nc->peer); in virtio_net_get_vhost()
|
/openbmc/qemu/net/ |
H A D | vhost-user.c | 28 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() 71 if (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() 117 s->vhost_net = net; in vhost_user_start() 164 if (s->vhost_net) { in net_vhost_user_cleanup() 166 g_free(s->vhost_net); in net_vhost_user_cleanup() 167 s->vhost_net = NULL; in net_vhost_user_cleanup() [all …]
|
H A D | tap.c | 62 VHostNetState *vhost_net; member 348 if (s->vhost_net) { in tap_cleanup() 349 vhost_net_cleanup(s->vhost_net); in tap_cleanup() 350 g_free(s->vhost_net); in tap_cleanup() 351 s->vhost_net = NULL; in tap_cleanup() 439 s->vhost_net = NULL; in net_tap_fd_init() 778 s->vhost_net = vhost_net_init(&options); in net_init_tap_one() 779 if (!s->vhost_net) { in net_init_tap_one() 1052 return s->vhost_net; in tap_get_vhost_net()
|
H A D | vhost-vdpa.c | 38 VHostNetState *vhost_net; member 136 return s->vhost_net; in vhost_vdpa_get_vhost_net() 172 static int vhost_vdpa_net_check_device_id(struct vhost_net *net) in vhost_vdpa_net_check_device_id() 190 struct vhost_net *net = NULL; in vhost_vdpa_add() 207 s->vhost_net = net; in vhost_vdpa_add() 234 if (s->vhost_net) { in vhost_vdpa_cleanup() 235 vhost_net_cleanup(s->vhost_net); in vhost_vdpa_cleanup() 236 g_free(s->vhost_net); in vhost_vdpa_cleanup() 237 s->vhost_net = NULL; in vhost_vdpa_cleanup() 264 features = vhost_net_get_features(s->vhost_net, features); in vhost_vdpa_has_ufo()
|
H A D | tap-win32.c | 748 struct vhost_net *tap_get_vhost_net(NetClientState *nc) in tap_get_vhost_net()
|
/openbmc/qemu/include/net/ |
H A D | vhost_net.h | 10 struct vhost_net; 11 typedef struct vhost_net VHostNetState; 22 struct vhost_net *vhost_net_init(VhostNetOptions *options); 34 int vhost_net_get_config(struct vhost_net *net, uint8_t *config, 37 int vhost_net_set_config(struct vhost_net *net, const uint8_t *data, 51 int vhost_net_set_mtu(struct vhost_net *net, uint16_t mtu);
|
H A D | vhost-user.h | 14 struct vhost_net; 15 struct vhost_net *vhost_user_get_vhost_net(NetClientState *nc);
|
H A D | tap.h | 36 struct vhost_net; 37 struct vhost_net *tap_get_vhost_net(NetClientState *nc);
|
H A D | vhost-vdpa.h | 17 struct vhost_net *vhost_vdpa_get_vhost_net(NetClientState *nc);
|
/openbmc/linux/drivers/vhost/ |
H A D | net.c | 132 struct vhost_net { struct 699 struct vhost_net *net = container_of(vq->dev, struct vhost_net, in vhost_net_build_xdp() 1265 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_tx_kick() 1274 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_rx_kick() 1281 struct vhost_net *net = container_of(work, struct vhost_net, in handle_tx_net() 1288 struct vhost_net *net = container_of(work, struct vhost_net, in handle_rx_net() 1295 struct vhost_net *n; in vhost_net_open() 1404 struct vhost_net *n = f->private_data; in vhost_net_release() 1699 struct vhost_net *n = f->private_data; in vhost_net_ioctl() 1753 struct vhost_net *n = file->private_data; in vhost_net_chr_read_iter() [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_VHOST_NET) += vhost_net.o 3 vhost_net-y := net.o
|
H A D | Kconfig | 44 be called vhost_net.
|
/openbmc/qemu/include/hw/virtio/ |
H A D | vhost.h | 141 struct vhost_net { struct
|
/openbmc/qemu/ |
H A D | meson_options.txt | 290 option('vhost_net', type: 'feature', value: 'auto', feature
|
H A D | meson.build | 584 have_vhost_net_user = have_vhost_user and get_option('vhost_net').allowed() 585 have_vhost_net_vdpa = have_vhost_vdpa and get_option('vhost_net').allowed() 586 have_vhost_net_kernel = have_vhost_kernel and get_option('vhost_net').allowed()
|