/qemu/net/ |
H A D | vhost-user.c | 69 s = DO_UPCAST(NetVhostUserState, nc, ncs[i]); in vhost_user_stop() 72 vhost_user_save_acked_features(ncs[i]); in vhost_user_stop() 92 s = DO_UPCAST(NetVhostUserState, nc, ncs[i]); in vhost_user_start() 94 options.net_backend = ncs[i]; in vhost_user_start() 127 vhost_user_stop(i, ncs); in vhost_user_start() 250 NetClientState *ncs[MAX_QUEUE_NUM]; in chr_closed_bh() local 255 queues = qemu_find_net_clients_except(name, ncs, in chr_closed_bh() 260 s = DO_UPCAST(NetVhostUserState, nc, ncs[0]); in chr_closed_bh() 263 vhost_user_save_acked_features(ncs[i]); in chr_closed_bh() 279 NetClientState *ncs[MAX_QUEUE_NUM]; in net_vhost_user_event() local [all …]
|
H A D | net-hmp-cmds.c | 138 NetClientState *ncs[MAX_QUEUE_NUM]; in set_link_completion() local 140 count = qemu_find_net_clients_except(NULL, ncs, in set_link_completion() 144 readline_add_completion_of(rs, str, ncs[i]->name); in set_link_completion() 155 NetClientState *ncs[MAX_QUEUE_NUM]; in netdev_del_completion() local 163 count = qemu_find_net_clients_except(NULL, ncs, NET_CLIENT_DRIVER_NIC, in netdev_del_completion() 166 if (ncs[i]->is_netdev) { in netdev_del_completion() 167 readline_add_completion_of(rs, str, ncs[i]->name); in netdev_del_completion()
|
H A D | announce.c | 149 if (!strcmp(entry->value, nic->ncs->name)) { in qemu_announce_self_iter() 161 nic->ncs->name, in qemu_announce_self_iter() 170 if (nic->ncs->info->announce) { in qemu_announce_self_iter() 171 nic->ncs->info->announce(nic->ncs); in qemu_announce_self_iter()
|
H A D | net.c | 338 nic->ncs = (void *)nic + info->size; in qemu_new_nic() 346 nic->ncs[i].queue_index = i; in qemu_new_nic() 354 return nic->ncs + queue_index; in qemu_get_subqueue() 380 return ncs->peer; in qemu_get_peer() 409 NetClientState *ncs[MAX_QUEUE_NUM]; in qemu_del_net_client() local 451 qemu_cleanup_net_client(ncs[i]); in qemu_del_net_client() 452 qemu_free_net_client(ncs[i]); in qemu_del_net_client() 930 ncs[ret] = nc; in qemu_find_net_clients_except() 1597 NetClientState *ncs[MAX_QUEUE_NUM]; in qmp_set_link() local 1610 nc = ncs[0]; in qmp_set_link() [all …]
|
H A D | filter.c | 221 NetClientState *ncs[MAX_QUEUE_NUM]; in netfilter_complete() local 231 queues = qemu_find_net_clients_except(nf->netdev_id, ncs, in netfilter_complete() 243 if (get_vhost_net(ncs[0])) { in netfilter_complete() 273 if (position->netdev != ncs[0]) { in netfilter_complete() 283 nf->netdev = ncs[0]; in netfilter_complete()
|
H A D | vhost-vdpa.c | 186 static int vhost_vdpa_add(NetClientState *ncs, void *be, in vhost_vdpa_add() argument 195 assert(ncs->info->type == NET_CLIENT_DRIVER_VHOST_VDPA); in vhost_vdpa_add() 196 s = DO_UPCAST(VhostVDPAState, nc, ncs); in vhost_vdpa_add() 197 options.net_backend = ncs; in vhost_vdpa_add() 295 NetClientState *nc_i = qemu_get_peer(nic->ncs, i); in vhost_vdpa_net_get_nc_vdpa() 333 vhost_net_stop(vdev, n->nic->ncs, data_queue_pairs, cvq); in vhost_vdpa_net_log_global_enable() 336 r = vhost_net_start(vdev, n->nic->ncs, data_queue_pairs, cvq); in vhost_vdpa_net_log_global_enable() 1782 g_autofree NetClientState **ncs = NULL; in net_init_vhost_vdpa() local 1838 ncs = g_malloc0(sizeof(*ncs) * queue_pairs); in net_init_vhost_vdpa() 1849 if (!ncs[i]) in net_init_vhost_vdpa() [all …]
|
/qemu/hw/net/ |
H A D | vhost_net.c | 351 int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, in vhost_net_start() argument 376 peer = qemu_get_peer(ncs, i); in vhost_net_start() 378 peer = qemu_get_peer(ncs, n->max_queue_pairs); in vhost_net_start() 401 peer = qemu_get_peer(ncs, i); in vhost_net_start() 403 peer = qemu_get_peer(ncs, n->max_queue_pairs); in vhost_net_start() 425 peer = qemu_get_peer(ncs, i < data_queue_pairs ? in vhost_net_start() 438 void vhost_net_stop(VirtIODevice *dev, NetClientState *ncs, in vhost_net_stop() argument 452 peer = qemu_get_peer(ncs, i); in vhost_net_stop() 454 peer = qemu_get_peer(ncs, n->max_queue_pairs); in vhost_net_stop()
|
H A D | vhost_net-stub.c | 35 NetClientState *ncs, in vhost_net_start() argument 41 NetClientState *ncs, in vhost_net_stop() argument
|
H A D | mipsnet.c | 149 if (mipsnet_can_receive(s->nic->ncs)) { in mipsnet_ioport_read() 188 if (mipsnet_can_receive(s->nic->ncs)) { in mipsnet_ioport_write()
|
H A D | virtio-net.c | 310 r = vhost_net_start(vdev, n->nic->ncs, queue_pairs, cvq); in virtio_net_vhost_status() 317 vhost_net_stop(vdev, n->nic->ncs, queue_pairs, cvq); in virtio_net_vhost_status() 339 if (virtio_net_set_vnet_endian_one(vdev, ncs[i].peer, enable) < 0 && in virtio_net_set_vnet_endian() 342 virtio_net_set_vnet_endian_one(vdev, ncs[i].peer, false); in virtio_net_set_vnet_endian() 363 n->needs_vnet_hdr_swap = virtio_net_set_vnet_endian(vdev, n->nic->ncs, in virtio_net_vnet_endian_status() 371 virtio_net_set_vnet_endian(vdev, n->nic->ncs, queue_pairs, false); in virtio_net_vnet_endian_status() 394 NetClientState *ncs = qemu_get_subqueue(n->nic, i); in virtio_net_set_status() local 407 qemu_flush_queued_packets(ncs); in virtio_net_set_status() 707 NetClientState *peer = n->nic_conf.peers.ncs[0]; in virtio_net_max_tx_queue_size() 3720 if (n->nic_conf.peers.ncs[i]->is_datapath) { in virtio_net_device_realize() [all …]
|
H A D | dp8393x.c | 382 if (dp8393x_can_receive(s->nic->ncs)) { in dp8393x_do_receiver_enable()
|
/qemu/include/net/ |
H A D | vhost_net.h | 21 int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, 23 void vhost_net_stop(VirtIODevice *dev, NetClientState *ncs,
|
H A D | net.h | 28 NetClientState *ncs[MAX_QUEUE_NUM]; member 127 NetClientState *ncs; member 149 int qemu_find_net_clients_except(const char *id, NetClientState **ncs,
|
/qemu/hw/core/ |
H A D | qdev-properties-system.c | 385 char *p = g_strdup(peers_ptr->ncs[0] ? peers_ptr->ncs[0]->name : ""); in get_netdev() 396 NetClientState **ncs = peers_ptr->ncs; in set_netdev() local 429 if (!check_prop_still_unset(obj, name, ncs[i], str, false, errp)) { in set_netdev() 439 ncs[i] = peers[i]; in set_netdev() 440 ncs[i]->queue_index = i; in set_netdev()
|