Home
last modified time | relevance | path

Searched +full:eth +full:- +full:mac (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/linux/net/ethernet/
H A Deth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Ethernet-type device handling.
9 * Version: @(#)eth.c 1.0.7 05/25/93
14 * Florian La Roche, <rzsfl@rz.uni-sb.de>
29 * Alan Cox : MAC layer pointers/new format.
34 * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup().
46 #include <linux/nvmem-consumer.h>
67 * eth_header - create the Ethernet header
73 * @len: packet length (<= skb->len)
83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dqca,ar71xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: QCA AR71XX MAC
10 - $ref: ethernet-controller.yaml#
13 - Oleksij Rempel <o.rempel@pengutronix.de>
18 - items:
19 - enum:
20 - qca,ar7100-eth # Atheros AR7100
21 - qca,ar7240-eth # Atheros AR7240
[all …]
H A Dairoha,en7581-eth.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/airoha,en7581-eth.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Lorenzo Bianconi <lorenzo@kernel.org>
14 These SoCs have multi-GMAC ports.
19 - airoha,en7581-eth
23 - description: Frame engine base address
24 - description: QDMA0 base address
25 - description: QDMA1 base address
[all …]
H A Dmarvell-orion-net.txt12 set of controller registers. Each port node describes port-specific properties.
16 only one port associated. Multiple ports are implemented as multiple single-port
23 - #address-cells: shall be 1.
24 - #size-cells: shall be 0.
25 - compatible: shall be one of "marvell,orion-eth", "marvell,kirkwood-eth".
26 - reg: address and length of the controller registers.
29 - clocks: phandle reference to the controller clock.
30 - marvell,tx-checksum-limit: max tx packet size for hardware checksum.
35 - compatible: shall be one of "marvell,orion-eth-port",
36 "marvell,kirkwood-eth-port".
[all …]
H A Dmediatek,star-emac.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/mediatek,star-emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek STAR Ethernet MAC Controller
10 - Bartosz Golaszewski <bgolaszewski@baylibre.com>
13 This Ethernet MAC is used on the MT8* family of SoCs from MediaTek.
14 It's compliant with 802.3 standards and supports half- and full-duplex
15 modes with flow-control as well as CRC offloading and VLAN tags.
18 - $ref: ethernet-controller.yaml#
[all …]
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
H A Dmac-phy-support.rst1 .. SPDX-License-Identifier: GPL-2.0
5 DPAA2 MAC / PHY support
11 --------
13 The DPAA2 MAC / PHY support consists of a set of APIs that help DPAA2 network
14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library.
17 ---------------------------
19 Among other DPAA2 objects, the fsl-mc bus exports DPNI objects (abstracting a
20 network interface) and DPMAC objects (abstracting a MAC). The dpaa2-eth driver
26 directly by the dpaa2-eth driver or by phylink.
28 .. code-block:: none
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh2 # SPDX-License-Identifier: GPL-2.0
4 # In-place tunneling
10 readonly ns_prefix="ns-$$-"
35 ip netns exec "${ns1}" ethtool -K veth1 tso off
37 ip -netns "${ns1}" link set veth1 up
38 ip -netns "${ns2}" link set veth2 up
40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1
41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2
42 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad
43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_redirect_map.c1 // SPDX-License-Identifier: GPL-2.0
43 void *data_end = (void *)(long)xdp->data_end; in xdp_count()
44 void *data = (void *)(long)xdp->data; in xdp_count()
45 struct ethhdr *eth = data; in xdp_count() local
48 if (data + sizeof(*eth) > data_end) in xdp_count()
51 if (bpf_htons(eth->h_proto) == ETH_P_IP) { in xdp_count()
88 void *data_end = (void *)(long)xdp->data_end; in store_mac()
89 void *data = (void *)(long)xdp->data; in store_mac()
90 struct ethhdr *eth = data; in store_mac() local
92 __be64 mac = 0; in store_mac() local
[all …]
H A Dxdp_redirect_multi_kern.c1 // SPDX-License-Identifier: GPL-2.0
29 /* map to store egress interfaces mac addresses */
48 void *data_end = (void *)(long)ctx->data_end; in xdp_redirect_map_multi_prog()
49 void *data = (void *)(long)ctx->data; in xdp_redirect_map_multi_prog()
50 int if_index = ctx->ingress_ifindex; in xdp_redirect_map_multi_prog()
51 struct ethhdr *eth = data; in xdp_redirect_map_multi_prog() local
57 nh_off = sizeof(*eth); in xdp_redirect_map_multi_prog()
61 h_proto = bpf_htons(eth->h_proto); in xdp_redirect_map_multi_prog()
93 void *data_end = (void *)(long)ctx->data_end; in xdp_devmap_prog()
94 void *data = (void *)(long)ctx->data; in xdp_devmap_prog()
[all …]
H A Dtest_xdp_vlan.c1 /* SPDX-License-Identifier: GPL-2.0
9 * # ethtool -K ixgbe2 rxvlan off
12 * # ethtool -k ixgbe2 | grep rx-vlan-offload
13 * rx-vlan-offload: off
30 * struct vlan_hdr - vlan header
57 bool parse_eth_frame(struct ethhdr *eth, void *data_end, struct parse_pkt *pkt) in parse_eth_frame() argument
62 offset = sizeof(*eth); in parse_eth_frame()
63 /* Make sure packet is large enough for parsing eth + 2 VLAN headers */ in parse_eth_frame()
64 if ((void *)eth + offset + (2*sizeof(struct _vlan_hdr)) > data_end) in parse_eth_frame()
67 eth_type = eth->h_proto; in parse_eth_frame()
[all …]
H A Dload_bytes_relative.c1 // SPDX-License-Identifier: GPL-2.0-only
23 struct ethhdr eth; in load_bytes_relative() local
29 /* MAC header is not set by the time cgroup_skb/egress triggers */ in load_bytes_relative()
30 if (bpf_skb_load_bytes_relative(skb, 0, &eth, sizeof(eth), in load_bytes_relative()
31 BPF_HDR_START_MAC) != -EFAULT) in load_bytes_relative()
39 BPF_HDR_START_NET) != -EFAULT) in load_bytes_relative()
/linux/drivers/net/ethernet/freescale/dpaa2/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
6 obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o
7 obj-$(CONFIG_FSL_DPAA2_PTP_CLOCK) += fsl-dpaa2-ptp.o
8 obj-$(CONFIG_FSL_DPAA2_SWITCH) += fsl-dpaa2-switch.o
10 fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o dpaa2-mac.o dpmac.o dpaa2-eth-devlink.o dp…
11 fsl-dpaa2-eth-${CONFIG_FSL_DPAA2_ETH_DCB} += dpaa2-eth-dcb.o
12 fsl-dpaa2-eth-${CONFIG_DEBUG_FS} += dpaa2-eth-debugfs.o
13 fsl-dpaa2-ptp-objs := dpaa2-ptp.o dprtc.o
14 fsl-dpaa2-switch-objs := dpaa2-switch.o dpaa2-switch-ethtool.o dpsw.o dpaa2-switch-flower.o dpaa2-m…
17 CFLAGS_dpaa2-eth.o := -I$(src)
/linux/Documentation/devicetree/bindings/edac/
H A Daltr,socfpga-ecc-manager.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/edac/altr,socfpga-ecc-manager.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Matthew Gerlach <matthew.gerlach@altera.com>
22 - items:
23 - const: altr,socfpga-s10-ecc-manager
24 - const: altr,socfpga-a10-ecc-manager
25 - const: altr,socfpga-a10-ecc-manager
26 - const: altr,socfpga-ecc-manager
[all …]
/linux/samples/bpf/
H A Dxdp_router_ipv4.bpf.c31 __be64 mac; member
38 __be64 mac; member
76 void *data_end = (void *)(long)ctx->data_end; in xdp_router_ipv4_prog()
77 void *data = (void *)(long)ctx->data; in xdp_router_ipv4_prog()
78 struct ethhdr *eth = data; in xdp_router_ipv4_prog() local
79 u64 nh_off = sizeof(*eth); in xdp_router_ipv4_prog()
86 NO_TEAR_INC(rec->processed); in xdp_router_ipv4_prog()
91 h_proto = eth->h_proto; in xdp_router_ipv4_prog()
101 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog()
107 NO_TEAR_INC(rec->xdp_pass); in xdp_router_ipv4_prog()
[all …]
/linux/arch/mips/cavium-octeon/
H A Docteon-platform.c6 * Copyright (C) 2004-2017 Cavium, Inc.
18 #include <asm/octeon/cvmx-helper-board.h>
24 #include <asm/octeon/cvmx-uctlx-defs.h>
78 if (dev->of_node) { in octeon2_usb_clocks_start()
82 uctl_node = of_get_parent(dev->of_node); in octeon2_usb_clocks_start()
88 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start()
90 dev_err(dev, "No UCTL \"refclk-frequency\"\n"); in octeon2_usb_clocks_start()
95 "refclk-type", &clock_type); in octeon2_usb_clocks_start()
203 * Step 4: Program the power-on reset field in the UCTL in octeon2_usb_clocks_start()
204 * clock-reset-control register. in octeon2_usb_clocks_start()
[all …]
/linux/Documentation/networking/
H A Dstatistics.rst1 .. SPDX-License-Identifier: GPL-2.0
14 - standard interface statistics based on
16 - protocol-specific statistics; and
17 - driver-defined statistics available via ethtool.
20 -----------------------------
25 $ ip -s -s link show dev ens4u1u1
38 Note that `-s` has been specified twice to see all members of
40 If `-s` is specified once the detailed errors won't be shown.
42 `ip` supports JSON formatting via the `-j` option.
51 see `Documentation/userspace-api/netlink/intro-specs.rst`.
[all …]
/linux/drivers/net/ethernet/ezchip/
H A Dnps_enet.h1 /* SPDX-License-Identifier: GPL-2.0-only */
59 /* Gbps Eth MAC Configuration 0 register masks and shifts */
93 /* Gbps Eth MAC Configuration 1 register masks and shifts */
103 /* Gbps Eth MAC Configuration 2 register masks and shifts */
119 /* Gbps Eth MAC Configuration 3 register masks and shifts */
141 /* GE MAC, PCS reset control register masks and shifts */
154 * struct nps_enet_priv - Storage of ENET's private information.
155 * @regs_base: Base address of ENET memory-mapped control registers.
170 * nps_enet_reg_set - Sets ENET register with provided value.
178 iowrite32be(value, priv->regs_base + reg); in nps_enet_reg_set()
[all …]
/linux/arch/xtensa/platforms/xtfpga/
H A Dsetup.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Copyright 2001 - 2006 Tensilica Inc.
25 #include <linux/clk-provider.h>
95 clk = clk_register_fixed_rate(NULL, np->name, NULL, 0, freq); in xtfpga_clk_setup()
107 CLK_OF_DECLARE(xtfpga_clk, "cdns,xtfpga-clock", xtfpga_clk_setup);
116 macaddr = of_get_property(node, "local-mac-address", &prop_len); in update_local_mac()
124 newmac->value = newmac + 1; in update_local_mac()
125 newmac->length = MAC_LEN; in update_local_mac()
126 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_local_mac()
127 if (newmac->name == NULL) { in update_local_mac()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_l2.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
11 #include <linux/dma-mapping.h>
63 return -ENOMEM; in qed_l2_alloc()
64 p_hwfn->p_l2_info = p_l2_info; in qed_l2_alloc()
66 if (IS_PF(p_hwfn->cdev)) { in qed_l2_alloc()
67 p_l2_info->queues = RESC_NUM(p_hwfn, QED_L2_QUEUE); in qed_l2_alloc()
74 p_l2_info->queues = max_t(u8, rx, tx); in qed_l2_alloc()
77 pp_qids = kcalloc(p_l2_info->queues, sizeof(unsigned long *), in qed_l2_alloc()
[all …]
/linux/drivers/media/dvb-core/
H A Ddvb_net.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Copyright (C) 2003, 2004 gcs - Global Communication & Services GmbH.
21 * Feb 2004: hl/ws v1: Implementing draft-fair-ipdvb-ule-01.txt
23 * Dec 2004: hl/ws v2: Implementing draft-ietf-ipdvb-ule-03.txt:
29 * Filtering on dest MAC addresses, if present (D-Bit = 0)
30 * DVB_ULE_DEBUG compile-time option.
109 unsigned short ule_sndu_len; /* ULE SNDU length in bytes, w/o D-Bit. */
126 * stolen from eth.c out of the linux kernel, hacked for dvb-device
132 struct ethhdr *eth; in dvb_net_eth_type_trans() local
136 skb_pull(skb,dev->hard_header_len); in dvb_net_eth_type_trans()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-stm32.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * dwmac-stm32.c - DWMAC Specific Glue layer for STM32 MCU
37 *------------------------------------------
39 *------------------------------------------
41 *------------------------------------------
43 *------------------------------------------
45 *------------------------------------------
47 *------------------------------------------
74 * ---------------------------------------------------------------------------
75 *| MII | - | eth-ck | n/a | n/a |
[all …]
/linux/arch/powerpc/boot/dts/
H A Dkmeter1.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * 2008-2011 DENX Software Engineering GmbH
8 /dts-v1/;
13 #address-cells = <1>;
14 #size-cells = <1>;
28 #address-cells = <1>;
29 #size-cells = <0>;
34 d-cache-line-size = <32>; // 32 bytes
35 i-cache-line-size = <32>; // 32 bytes
36 d-cache-size = <32768>; // L1, 32K
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_mm.sh2 # SPDX-License-Identifier: GPL-2.0
33 before=$(ethtool_std_stats_get $if "eth-mac" "FramesTransmittedOK" $src)
35 $MZ $if -q -c $num_pkts -p 64 -b bcast -t ip -R $PREEMPTIBLE_PRIO
37 after=$(ethtool_std_stats_get $if "eth-mac" "FramesTransmittedOK" $src)
39 delta=$((after - before))
42 [ $delta -ge $num_pkts ] && [ $delta -le $((num_pkts + 100)) ]
52 # It isn't completely clear from IEEE 802.3-2018 Figure 99-5: Transmit
55 # MAC Merge TX direction is disabled. That being said, at least the
56 # NXP ENETC does not, and requires tx-enabled on in order to respond to
58 ethtool --set-mm $rx tx-enabled on
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_tunnel_vxlan.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Test devlink-trap tunnel drops and exceptions functionality over mlxsw.
8 # +--------------------+
12 # +----|---------------+
14 # +----|----------------------------------------------------------------------+
16 # | +--|--------------------------------------------------------------------+ |
22 # | +-----------------------------------------------------------------------+ |
26 # +----|----------------------------------------------------------------------+
28 # +----|--------------------------------------------------------+
33 # +-------------------------------------------------------------+
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_fip.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2016-2018 Cavium Inc.
27 QEDF_ERR(&qedf->dbg_ctx, in qedf_fcoe_send_vlan_req()
32 eth_fr = (char *)skb->data; in qedf_fcoe_send_vlan_req()
36 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req()
37 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req()
38 vlan->eth.h_proto = htons(ETH_P_FIP); in qedf_fcoe_send_vlan_req()
40 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in qedf_fcoe_send_vlan_req()
41 vlan->fip.fip_op = htons(FIP_OP_VLAN); in qedf_fcoe_send_vlan_req()
42 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in qedf_fcoe_send_vlan_req()
[all …]

12345678910>>...13