Home
last modified time | relevance | path

Searched refs:netdev (Results 1 – 25 of 68) sorted by relevance

123

/qemu/hw/net/
A Dxen_nic.c218 netdev->tx_work = 0; in net_tx_packets()
326 netdev->nic = qemu_new_nic(&net_xen_info, &netdev->conf, in xen_netdev_realize()
391 if (!netdev->txs) { in xen_netdev_connect()
400 if (!netdev->rxs) { in xen_netdev_connect()
405 BACK_RING_INIT(&netdev->tx_ring, netdev->txs, XEN_PAGE_SIZE); in xen_netdev_connect()
406 BACK_RING_INIT(&netdev->rx_ring, netdev->rxs, XEN_PAGE_SIZE); in xen_netdev_connect()
416 trace_xen_netdev_connect(netdev->dev, netdev->tx_ring_ref, in xen_netdev_connect()
419 net_tx_packets(netdev); in xen_netdev_connect()
439 if (netdev->txs) { in xen_netdev_disconnect()
444 if (netdev->rxs) { in xen_netdev_disconnect()
[all …]
/qemu/net/
A Dclients.h29 int net_init_dump(const Netdev *netdev, const char *name,
33 int net_init_slirp(const Netdev *netdev, const char *name,
37 int net_init_hubport(const Netdev *netdev, const char *name,
40 int net_init_socket(const Netdev *netdev, const char *name,
43 int net_init_stream(const Netdev *netdev, const char *name,
46 int net_init_dgram(const Netdev *netdev, const char *name,
49 int net_init_tap(const Netdev *netdev, const char *name,
52 int net_init_bridge(const Netdev *netdev, const char *name,
55 int net_init_l2tpv3(const Netdev *netdev, const char *name,
58 int net_init_vde(const Netdev *netdev, const char *name,
[all …]
A Dvmnet-shared.c20 static bool validate_options(const Netdev *netdev, Error **errp) in validate_options() argument
22 const NetdevVmnetSharedOptions *options = &(netdev->u.vmnet_shared); in validate_options()
40 static xpc_object_t build_if_desc(const Netdev *netdev) in build_if_desc() argument
42 const NetdevVmnetSharedOptions *options = &(netdev->u.vmnet_shared); in build_if_desc()
85 int net_init_vmnet_shared(const Netdev *netdev, const char *name, in net_init_vmnet_shared() argument
93 if (!validate_options(netdev, errp)) { in net_init_vmnet_shared()
97 if_desc = build_if_desc(netdev); in net_init_vmnet_shared()
A Dvmnet-host.c21 static bool validate_options(const Netdev *netdev, Error **errp) in validate_options() argument
23 const NetdevVmnetHostOptions *options = &(netdev->u.vmnet_host); in validate_options()
47 static xpc_object_t build_if_desc(const Netdev *netdev) in build_if_desc() argument
49 const NetdevVmnetHostOptions *options = &(netdev->u.vmnet_host); in build_if_desc()
90 int net_init_vmnet_host(const Netdev *netdev, const char *name, in net_init_vmnet_host() argument
98 if (!validate_options(netdev, errp)) { in net_init_vmnet_host()
102 if_desc = build_if_desc(netdev); in net_init_vmnet_host()
A Dvmnet-bridged.m69 static bool validate_options(const Netdev *netdev, Error **errp)
71 const NetdevVmnetBridgedOptions *options = &(netdev->u.vmnet_bridged);
95 static xpc_object_t build_if_desc(const Netdev *netdev)
97 const NetdevVmnetBridgedOptions *options = &(netdev->u.vmnet_bridged);
125 int net_init_vmnet_bridged(const Netdev *netdev, const char *name,
133 if (!validate_options(netdev, errp)) {
137 if_desc = build_if_desc(netdev);
A Dfilter.c81 if (sender == nf->netdev) { in qemu_netfilter_pass_to_next()
169 if (nf->netdev && nfc->status_changed) { in netfilter_set_status()
273 if (position->netdev != ncs[0]) { in netfilter_complete()
283 nf->netdev = ncs[0]; in netfilter_complete()
297 QTAILQ_INSERT_AFTER(&nf->netdev->filters, position, nf, next); in netfilter_complete()
300 QTAILQ_INSERT_HEAD(&nf->netdev->filters, nf, next); in netfilter_complete()
302 QTAILQ_INSERT_TAIL(&nf->netdev->filters, nf, next); in netfilter_complete()
315 if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters) && in netfilter_finalize()
317 QTAILQ_REMOVE(&nf->netdev->filters, nf, next); in netfilter_finalize()
A Dnet.c974 nic = &netdev->u.nic; in net_init_nic()
986 if (nic->netdev) { in net_init_nic()
987 nd->netdev = qemu_find_netdev(nic->netdev); in net_init_nic()
988 if (!nd->netdev) { in net_init_nic()
994 nd->netdev = peer; in net_init_nic()
1236 const Netdev *netdev,
1307 !netdev->u.nic.netdev) { in net_client_init1()
1312 nc = qemu_find_netdev(netdev->id); in net_client_init1()
1318 if (net_client_init_fun[netdev->type](netdev, netdev->id, peer, errp) < 0) { in net_client_init1()
1444 if (!id_wellformed(netdev->id)) { in qmp_netdev_add()
[all …]
A Dhub.c242 int net_init_hubport(const Netdev *netdev, const char *name, in net_init_hubport() argument
248 assert(netdev->type == NET_CLIENT_DRIVER_HUBPORT); in net_init_hubport()
250 hubport = &netdev->u.hubport; in net_init_hubport()
252 if (hubport->netdev) { in net_init_hubport()
253 hubpeer = qemu_find_netdev(hubport->netdev); in net_init_hubport()
255 error_setg(errp, "netdev '%s' not found", hubport->netdev); in net_init_hubport()
A Dvde.c112 int net_init_vde(const Netdev *netdev, const char *name, in net_init_vde() argument
117 assert(netdev->type == NET_CLIENT_DRIVER_VDE); in net_init_vde()
118 vde = &netdev->u.vde; in net_init_vde()
A Dfilter-rewriter.c52 qemu_net_queue_purge(s->incoming_queue, nf->netdev); in filter_rewriter_flush()
270 vnet_hdr_len = nf->netdev->vnet_hdr_len; in colo_rewriter_receive_iov()
282 fill_connection_key(pkt, &key, sender == nf->netdev); in colo_rewriter_receive_iov()
294 if (sender == nf->netdev) { in colo_rewriter_receive_iov()
/qemu/docs/
A Dcolo-proxy.txt165 -netdev tap,id=hn0,vhost=off
166 -device e1000,id=e0,netdev=hn0,mac=52:a4:00:12:78:66
174 -object filter-mirror,id=m0,netdev=hn0,queue=tx,outdev=mirror0
180 -netdev tap,id=hn0,vhost=off
181 -device e1000,netdev=hn0,mac=52:a4:00:12:78:66
184 -object filter-redirector,id=f1,netdev=hn0,queue=tx,indev=red0
185 -object filter-redirector,id=f2,netdev=hn0,queue=rx,outdev=red1
186 -object filter-rewriter,id=f3,netdev=hn0,queue=all
192 -device e1000,id=e0,netdev=hn0,mac=52:a4:00:12:78:66
205 -netdev tap,id=hn0,vhost=off
[all …]
A DCOLO-FT.txt163 -netdev tap,id=hn0,vhost=off,helper=/usr/lib/qemu/qemu-bridge-helper \
164 -device rtl8139,id=e0,netdev=hn0 \
171 -object filter-mirror,id=m0,netdev=hn0,queue=tx,outdev=mirror0 \
172 -object filter-redirector,netdev=hn0,id=redire0,queue=rx,indev=compare_out \
173 -object filter-redirector,netdev=hn0,id=redire1,queue=rx,outdev=compare0 \
194 -netdev tap,id=hn0,vhost=off,helper=/usr/lib/qemu/qemu-bridge-helper \
195 -device rtl8139,id=e0,netdev=hn0 \
198 -object filter-redirector,id=f1,netdev=hn0,queue=tx,indev=red0 \
199 -object filter-redirector,id=f2,netdev=hn0,queue=rx,outdev=red1 \
200 -object filter-rewriter,id=rew0,netdev=hn0,queue=all \
[all …]
/qemu/docs/specs/
A Driscv-iommu.rst53 -device e1000e,netdev=net1 -netdev user,id=net1,net=192.168.0.0/24 \
54 -device e1000e,netdev=net2 -netdev user,id=net2,net=192.168.200.0/24 \
59 -device e1000e,netdev=net1 -netdev user,id=net1,net=192.168.0.0/24 \
60 -device e1000e,netdev=net2 -netdev user,id=net2,net=192.168.200.0/24 \
/qemu/qapi/
A Dcommon.json166 # Indicates whether a netfilter is attached to a netdev's transmit
170 # queue of the netdev (default).
172 # @rx: the filter is attached to the receive queue of the netdev,
173 # where it will receive packets sent to the netdev.
175 # @tx: the filter is attached to the transmit queue of the netdev,
176 # where it will receive packets sent by the netdev.
A Dnet.json84 # @netdev: id of -netdev to connect to
98 '*netdev': 'str',
390 # @netdev: used to connect hub to a netdev instead of a device (since
398 '*netdev': 'str' } }
642 # Configuration info for stream socket netdev
677 # Configuration info for datagram socket netdev.
714 # Available netdev drivers.
992 # @netdev-id: QEMU netdev id that is connected
1014 'data': { 'netdev-id': 'str',
1022 # @netdev-id: QEMU netdev id that is disconnected
[all …]
A Dpragma.json100 'NetdevTapOptions', # netdev_add, query-netdev, -netdev
/qemu/docs/system/devices/
A Dnet.rst76 When using the ``'-netdev user,hostfwd=...'`` option, TCP or UDP
87 such a hub using the ``-netdev
90 default hub) unless you specify a netdev with ``-net nic,netdev=xxx``
96 Using the ``-netdev socket`` (or ``-nic socket`` or ``-net socket``)
98 QEMU instances. See the description of the ``-netdev socket`` option in
/qemu/docs/system/ppc/
A Dpowernv.rst79 -device e1000e,netdev=net0,mac=C0:FF:EE:00:00:02,bus=pcie.0,addr=0x0 \
80 -netdev user,id=net0,hostfwd=::20022-:22,hostname=pnv \
102 -device e1000e,netdev=net0,mac=C0:FF:EE:00:00:02,bus=pcie.0,addr=0x0
103 -netdev bridge,id=net0,helper=/usr/libexec/qemu-bridge-helper,br=virbr0,id=hostnet0
126 -device e1000e,netdev=net0,mac=C0:FF:EE:00:00:02,bus=bridge1,addr=0x2 \
127 -netdev bridge,helper=/usr/libexec/qemu-bridge-helper,br=virbr0,id=net0 \
139 -netdev tap,helper=/usr/lib/qemu/qemu-bridge-helper,br=virbr0,id=netdev0 \
140 -device virtio-net-pci,netdev=netdev0,id=net0,bus=pcie.1 \
/qemu/tests/functional/
A Dtest_netdev_ethtool.py30 def common_test_code(self, netdev, extra_args=None): argument
54 '-device', netdev)
/qemu/docs/system/
A Dreplay.rst42 -netdev user,id=net1 -device rtl8139,netdev=net1 \\
43 -object filter-replay,id=replay,netdev=net1
53 -netdev user,id=net1 -device rtl8139,netdev=net1 \\
54 -object filter-replay,id=replay,netdev=net1
168 -netdev user,id=net1 -device rtl8139,netdev=net1
169 -object filter-replay,id=replay,netdev=net1
A Dbootindex.rst39 -netdev type=user,id=net0 \\
40 -device virtio-net-pci,netdev=net0,bootindex=2 \\
41 -netdev type=user,id=net1 \\
42 -device e1000,netdev=net1,bootindex=1
/qemu/docs/system/i386/
A Dmicrovm.rst82 -netdev tap,id=tap0,script=no,downscript=no \
83 -device virtio-net-device,netdev=tap0
106 -netdev tap,id=tap0,script=no,downscript=no \
107 -device virtio-net-device,netdev=tap0
A Dxenpvh.rst44 -device virtio-net-pci,id=nic0,netdev=net0,mac=00:16:3e:5c:81:78 \
45 -netdev type=tap,id=net0,ifname=vif3.0-emu,br=xenbr0,script=no,downscript=no \
/qemu/docs/system/openrisc/
A Dvirt.rst30 -device virtio-net-device,netdev=user -netdev user,id=user,net=10.9.0.1/24,host=10.9.0.100 \
/qemu/
A Dqemu-options.hx2905 "-netdev hubport,id=str,hubid=n[,netdev=nd]\n"
2975 |qemu_system| -netdev user,id=n1,ipv6=off -device e1000,netdev=n1,mac=52:54:98:76:54:32
3191 -netdev tap,id=nd0,ifname=tap0 -device e1000,netdev=nd0 \\
3192 -netdev tap,id=nd1,ifname=tap1 -device rtl8139,netdev=nd1
3215 |qemu_system| linux.img -netdev bridge,id=n1 -device virtio-net,netdev=n1
3221 |qemu_system| linux.img -netdev bridge,br=qemubr0,id=n1 -device virtio-net,netdev=n1
3636 Establish a vhost-vdpa netdev.
3643 ``-netdev hubport,id=id,hubid=hubid[,netdev=nd]``
3648 hubport to another netdev with ID nd by using the ``netdev=nd``
5584 netdev, where it will receive packets sent to the netdev.
[all …]

Completed in 52 milliseconds

123