Home
last modified time | relevance | path

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

12345

/openbmc/qemu/hw/net/
H A Dxen_nic.c72 static void net_tx_response(struct XenNetDev *netdev, netif_tx_request_t *txp, int8_t st) in OBJECT_DECLARE_SIMPLE_TYPE()
74 RING_IDX i = netdev->tx_ring.rsp_prod_pvt; in OBJECT_DECLARE_SIMPLE_TYPE()
78 resp = RING_GET_RESPONSE(&netdev->tx_ring, i); in OBJECT_DECLARE_SIMPLE_TYPE()
84 RING_GET_RESPONSE(&netdev->tx_ring, ++i)->status = NETIF_RSP_NULL; in OBJECT_DECLARE_SIMPLE_TYPE()
88 netdev->tx_ring.rsp_prod_pvt = ++i; in OBJECT_DECLARE_SIMPLE_TYPE()
89 RING_PUSH_RESPONSES_AND_CHECK_NOTIFY(&netdev->tx_ring, notify); in OBJECT_DECLARE_SIMPLE_TYPE()
91 xen_device_notify_event_channel(XEN_DEVICE(netdev), in OBJECT_DECLARE_SIMPLE_TYPE()
92 netdev->event_channel, NULL); in OBJECT_DECLARE_SIMPLE_TYPE()
95 if (i == netdev->tx_ring.req_cons) { in OBJECT_DECLARE_SIMPLE_TYPE()
97 RING_FINAL_CHECK_FOR_REQUESTS(&netdev->tx_ring, more_to_do); in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
/openbmc/qemu/net/
H A Dclients.h29 int net_init_dump(const Netdev *netdev, const char *name,
33 int net_init_passt(const Netdev *netdev, const char *name,
37 int net_init_slirp(const Netdev *netdev, const char *name,
41 int net_init_hubport(const Netdev *netdev, const char *name,
44 int net_init_socket(const Netdev *netdev, const char *name,
47 int net_init_stream(const Netdev *netdev, const char *name,
50 int net_init_dgram(const Netdev *netdev, const char *name,
53 int net_init_tap(const Netdev *netdev, const char *name,
56 int net_init_bridge(const Netdev *netdev, const char *name,
59 int net_init_l2tpv3(const Netdev *netdev, const char *name,
[all …]
H 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()
H 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()
H 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);
H 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()
H A Dnet.c996 static int net_init_nic(const Netdev *netdev, const char *name, in net_init_nic() argument
1003 assert(netdev->type == NET_CLIENT_DRIVER_NIC); in net_init_nic()
1004 nic = &netdev->u.nic; in net_init_nic()
1016 if (nic->netdev) { in net_init_nic()
1017 nd->netdev = qemu_find_netdev(nic->netdev); in net_init_nic()
1018 if (!nd->netdev) { in net_init_nic()
1019 error_setg(errp, "netdev '%s' not found", nic->netdev); in net_init_nic()
1024 nd->netdev = peer; in net_init_nic()
1266 const Netdev *netdev,
1310 static int net_client_init1(const Netdev *netdev, bool is_netdev, Error **errp) in net_client_init1() argument
[all …]
H 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()
H 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()
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0017-Adjust-for-musl-headers.patch15 src/network/netdev/bareudp.c | 2 +-
16 src/network/netdev/batadv.c | 2 +-
17 src/network/netdev/bond.c | 2 +-
18 src/network/netdev/bridge.c | 3 ++-
19 src/network/netdev/dummy.c | 2 +-
20 src/network/netdev/geneve.c | 2 +-
21 src/network/netdev/ifb.c | 2 +-
22 src/network/netdev/ipoib.c | 2 +-
23 src/network/netdev/ipvlan.c | 2 +-
24 src/network/netdev/macsec.c | 2 +-
[all …]
H A D0025-adjust-header-inclusion-order-to-avoid-redeclaration.patch13 src/network/netdev/l2tp-tunnel.c | 9 ++++-----
14 src/network/netdev/l2tp-tunnel.h | 6 +++---
15 src/network/netdev/wireguard.c | 2 +-
91 diff --git a/src/network/netdev/l2tp-tunnel.c b/src/network/netdev/l2tp-tunnel.c
93 --- a/src/network/netdev/l2tp-tunnel.c
94 +++ b/src/network/netdev/l2tp-tunnel.c
117 diff --git a/src/network/netdev/l2tp-tunnel.h b/src/network/netdev/l2tp-tunnel.h
119 --- a/src/network/netdev/l2tp-tunnel.h
120 +++ b/src/network/netdev/l2tp-tunnel.h
129 #include "netdev.h"
[all …]
/openbmc/u-boot/drivers/net/
H A Ddnet.c30 struct eth_device netdev; member
35 #define to_dnet(_nd) container_of(_nd, struct dnet_device, netdev)
133 static int dnet_send(struct eth_device *netdev, void *packet, int length) in dnet_send() argument
135 struct dnet_device *dnet = to_dnet(netdev); in dnet_send()
168 static int dnet_recv(struct eth_device *netdev) in dnet_recv() argument
170 struct dnet_device *dnet = to_dnet(netdev); in dnet_recv()
202 static void dnet_set_hwaddr(struct eth_device *netdev) in dnet_set_hwaddr() argument
204 struct dnet_device *dnet = to_dnet(netdev); in dnet_set_hwaddr()
207 tmp = get_unaligned_be16(netdev->enetaddr); in dnet_set_hwaddr()
209 tmp = get_unaligned_be16(&netdev->enetaddr[2]); in dnet_set_hwaddr()
[all …]
H A Dat91_emac.c155 struct eth_device *netdev; in get_emacbase_by_name() local
157 netdev = eth_get_dev_by_name(devname); in get_emacbase_by_name()
158 return (at91_emac_t *) netdev->iobase; in get_emacbase_by_name()
184 static int at91emac_phy_reset(struct eth_device *netdev) in at91emac_phy_reset() argument
190 emac = (at91_emac_t *) netdev->iobase; in at91emac_phy_reset()
195 debug_cond(VERBOSEP, "%s: Starting autonegotiation...\n", netdev->name); in at91emac_phy_reset()
209 "%s: Autonegotiation complete\n", netdev->name); in at91emac_phy_reset()
212 netdev->name, status); in at91emac_phy_reset()
218 static int at91emac_phy_init(struct eth_device *netdev) in at91emac_phy_init() argument
225 emac = (at91_emac_t *) netdev->iobase; in at91emac_phy_init()
[all …]
H A Dmacb.c125 struct eth_device netdev; member
141 #define to_macb(_nd) container_of(_nd, struct macb_device, netdev)
535 macb->phydev = phy_connect(macb->bus, macb->phy_addr, &macb->netdev, in macb_phy_init()
897 static int macb_send(struct eth_device *netdev, void *packet, int length) in macb_send() argument
899 struct macb_device *macb = to_macb(netdev); in macb_send()
901 return _macb_send(macb, netdev->name, packet, length); in macb_send()
904 static int macb_recv(struct eth_device *netdev) in macb_recv() argument
906 struct macb_device *macb = to_macb(netdev); in macb_recv()
923 static int macb_init(struct eth_device *netdev, bd_t *bd) in macb_init() argument
925 struct macb_device *macb = to_macb(netdev); in macb_init()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0017-Adjust-for-musl-headers.patch14 src/network/netdev/bareudp.c | 2 +-
15 src/network/netdev/batadv.c | 2 +-
16 src/network/netdev/bond.c | 2 +-
17 src/network/netdev/bridge.c | 2 +-
18 src/network/netdev/dummy.c | 2 +-
19 src/network/netdev/geneve.c | 2 +-
20 src/network/netdev/ifb.c | 2 +-
21 src/network/netdev/ipoib.c | 2 +-
22 src/network/netdev/ipvlan.c | 2 +-
23 src/network/netdev/macsec.c | 2 +-
[all …]
/openbmc/openbmc/meta-google/recipes-google/networking/
H A Dgbmc-nic-rename.bb28 echo "[Match]" > ${UNPACKDIR}/30-netdev-${devname}.link
29 echo "Path=*-${devaddr}" >> ${UNPACKDIR}/30-netdev-${devname}.link
30 echo "[Link]" >> ${UNPACKDIR}/30-netdev-${devname}.link
31 echo "Name=${devname}" >> ${UNPACKDIR}/30-netdev-${devname}.link
32 install -m0644 ${UNPACKDIR}/30-netdev-${devname}.link ${netdir}
/openbmc/qemu/docs/
H A Dcolo-proxy.txt65 …p | rx:receive packets sent to the netdev
66 … | tx:receive packets sent by the netdev
165 -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
175 -object filter-redirector,netdev=hn0,id=redire0,queue=rx,indev=compare_out
176 -object filter-redirector,netdev=hn0,id=redire1,queue=rx,outdev=compare0
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
[all …]
/openbmc/qemu/docs/system/
H A Dsriov.rst20 -netdev user,id=n -netdev user,id=o
21 -netdev user,id=p -netdev user,id=q
23 -device virtio-net-pci,bus=b,addr=0x0.0x3,netdev=q,sriov-pf=f
24 -device virtio-net-pci,bus=b,addr=0x0.0x2,netdev=p,sriov-pf=f
25 -device virtio-net-pci,bus=b,addr=0x0.0x1,netdev=o,sriov-pf=f
26 -device virtio-net-pci,bus=b,addr=0x0.0x0,netdev=n,id=f
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/openflow/openflow/
H A D0002-lib-netdev-Adjust-header-include-sequence.patch4 Subject: [PATCH 2/2] lib/netdev: Adjust header include sequence
15 lib/netdev.c | 11 +++++------
18 diff --git a/lib/netdev.c b/lib/netdev.c
20 --- a/lib/netdev.c
21 +++ b/lib/netdev.c
/openbmc/openbmc/meta-yadro/meta-nicole/recipes-core/systemd/
H A Dsystemd-conf_%.bbappend8 file://eth0.4004.netdev \
17 ${UNPACKDIR}/eth0.4004.netdev \
26 ${sysconfdir}/systemd/network/eth0.4004.netdev \
/openbmc/qemu/docs/system/devices/
H A Dnet.rst82 When using the ``'-netdev user,hostfwd=...'`` option, TCP or UDP
95 ``-netdev passt`` or ``-nic passt``) or it can be launched manually and
96 connected to QEMU either by using a socket (``-netdev stream``) or by using
97 the vhost-user interface (``-netdev vhost-user``).
99 Using ``-netdev stream`` or ``-netdev vhost-user`` will allow the user to
131 …|qemu_system| [...OPTIONS...] -netdev passt,id=netdev0 -device virtio-net,mac=9a:2b:2c:2d:2e:2f,id…
158 …|qemu_system| [...OPTIONS...] -device virtio-net-pci,netdev=netdev0 -netdev stream,id=netdev0,serv…
173 …hardev socket,id=chr0,path=~/passt.socket -netdev vhost-user,id=netdev0,chardev=chr0 -device virti…
239 such a hub using the ``-netdev
242 default hub) unless you specify a netdev with ``-net nic,netdev=xxx``
[all …]
/openbmc/openbmc/meta-facebook/recipes-phosphor/network/
H A Dphosphor-network_%.bbappend10 file://20-eth0.4088.netdev \
25 install -m 0644 ${UNPACKDIR}/20-eth0.4088.netdev ${D}${systemd_unitdir}/network/
34 ${systemd_unitdir}/network/20-eth0.4088.netdev \
/openbmc/qemu/docs/specs/
H 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 \
/openbmc/qemu/qapi/
H A Dcommon.json168 # Indicates whether a netfilter is attached to a netdev's transmit
172 # queue of the netdev (default).
174 # @rx: the filter is attached to the receive queue of the netdev,
175 # where it will receive packets sent to the netdev.
177 # @tx: the filter is attached to the transmit queue of the netdev,
178 # where it will receive packets sent by the netdev.
/openbmc/qemu/tests/functional/
H A Dtest_netdev_ethtool.py24 def common_test_code(self, netdev, extra_args=None): argument
48 '-device', netdev)

12345