| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_eth_soc.c | 289 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32() argument 291 __raw_writel(val, eth->base + reg); in mtk_w32() 294 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() argument 296 return __raw_readl(eth->base + reg); in mtk_r32() 299 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg) in mtk_m32() argument 303 val = mtk_r32(eth, reg); in mtk_m32() 306 mtk_w32(eth, val, reg); in mtk_m32() 310 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait() argument 315 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait() 322 dev_err(eth->dev, "mdio: MDIO timeout\n"); in mtk_mdio_busy_wait() [all …]
|
| H A D | mtk_ppe_offload.c | 17 struct ethhdr eth; member 57 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr() argument 60 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress, in mtk_flow_set_ipv4_addr() 66 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr() argument 69 return mtk_foe_entry_set_ipv6_tuple(eth, foe, in mtk_flow_set_ipv6_addr() 75 mtk_flow_offload_mangle_eth(const struct flow_action_entry *act, void *eth) in mtk_flow_offload_mangle_eth() argument 77 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth() 191 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device() argument 199 mtk_foe_entry_set_wdma(eth, foe, info.wdma_idx, info.queue, in mtk_flow_set_output_device() 201 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_flow_set_output_device() [all …]
|
| H A D | mtk_eth_soc.h | 342 #define TX_DMA_PLEN0(x) (((x) & eth->soc->tx.dma_max_len) << eth->soc->tx.dma_len_offset) 343 #define TX_DMA_PLEN1(x) ((x) & eth->soc->tx.dma_max_len) 363 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->rx.dma_max_len) << eth->soc->rx.dma_len_offset) 364 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->rx.dma_len_offset) & eth->soc->rx.dma_max_len) 1386 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth) in mtk_is_netsys_v1() argument 1388 return eth->soc->version == 1; in mtk_is_netsys_v1() 1391 static inline bool mtk_is_netsys_v2_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v2_or_greater() argument 1393 return eth->soc->version > 1; in mtk_is_netsys_v2_or_greater() 1396 static inline bool mtk_is_netsys_v3_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v3_or_greater() argument 1398 return eth->soc->version > 2; in mtk_is_netsys_v3_or_greater() [all …]
|
| /linux/drivers/net/ethernet/airoha/ |
| H A D | airoha_eth.c | 77 struct airoha_eth *eth = dev->eth; in airoha_set_macaddr() 85 for (i = 0; i < ARRAY_SIZE(eth->ports); i++) { in airoha_set_macaddr() 86 struct airoha_gdm_port *port = eth->ports[i]; in airoha_set_macaddr() 125 dev_warn(eth->dev, in airoha_fe_maccr_init() 129 dev_warn(eth->dev, "FE hw forwarding won't work properly\n"); in airoha_fe_maccr_init() 136 airoha_fe_wr(eth, reg, val); 138 airoha_fe_wr(eth, REG_FE_MAC_LMIN(reg), lmin); in airoha_fe_vip_setup() 139 airoha_fe_wr(eth, REG_FE_MAC_LMAX(reg), lmax); in airoha_fe_vip_setup() 146 static void airoha_set_gdm_port_fwd_cfg(struct airoha_eth *eth, u3 in airoha_fe_vip_setup() 76 struct airoha_eth *eth = port->qdma->eth; airoha_set_macaddr() local 91 airoha_set_gdm_port_fwd_cfg(struct airoha_eth * eth,u32 addr,u32 val) airoha_set_gdm_port_fwd_cfg() argument 107 struct airoha_eth *eth = port->qdma->eth; airoha_set_vip_for_gdm_port() local 122 airoha_fe_maccr_init(struct airoha_eth * eth) airoha_fe_maccr_init() argument 137 airoha_fe_vip_setup(struct airoha_eth * eth) airoha_fe_vip_setup() argument 201 airoha_fe_get_pse_queue_rsv_pages(struct airoha_eth * eth,u32 port,u32 queue) airoha_fe_get_pse_queue_rsv_pages() argument 215 airoha_fe_set_pse_queue_rsv_pages(struct airoha_eth * eth,u32 port,u32 queue,u32 val) airoha_fe_set_pse_queue_rsv_pages() argument 228 airoha_fe_get_pse_all_rsv(struct airoha_eth * eth) airoha_fe_get_pse_all_rsv() argument 235 airoha_fe_set_pse_oq_rsv(struct airoha_eth * eth,u32 port,u32 queue,u32 val) airoha_fe_set_pse_oq_rsv() argument 269 airoha_fe_pse_ports_init(struct airoha_eth * eth) airoha_fe_pse_ports_init() argument 353 airoha_fe_mc_vlan_clear(struct airoha_eth * eth) airoha_fe_mc_vlan_clear() argument 393 airoha_fe_crsn_qsel_init(struct airoha_eth * eth) airoha_fe_crsn_qsel_init() argument 439 airoha_fe_init(struct airoha_eth * eth) airoha_fe_init() argument 574 airoha_qdma_get_gdm_port(struct airoha_eth * eth,struct airoha_qdma_desc * desc) airoha_qdma_get_gdm_port() argument 598 struct airoha_eth *eth = qdma->eth; airoha_qdma_rx_process() local 743 struct airoha_eth *eth = qdma->eth; airoha_qdma_init_rx_queue() local 791 struct airoha_eth *eth = qdma->eth; airoha_qdma_cleanup_rx_queue() local 849 struct airoha_eth *eth = qdma->eth; airoha_qdma_wake_netdev_txqs() local 877 struct airoha_eth *eth; airoha_qdma_tx_napi_poll() local 986 struct airoha_eth *eth = qdma->eth; airoha_qdma_init_tx_queue() local 1030 struct airoha_eth *eth = qdma->eth; airoha_qdma_tx_irq_init() local 1078 struct airoha_eth *eth = qdma->eth; airoha_qdma_cleanup_tx_queue() local 1129 struct airoha_eth *eth = qdma->eth; airoha_qdma_init_hfwd_queues() local 1382 struct airoha_eth *eth = qdma->eth; airoha_qdma_init_irq_banks() local 1413 airoha_qdma_init(struct platform_device * pdev,struct airoha_eth * eth,struct airoha_qdma * qdma) airoha_qdma_init() argument 1480 airoha_hw_init(struct platform_device * pdev,struct airoha_eth * eth) airoha_hw_init() argument 1523 airoha_hw_cleanup(struct airoha_eth * eth) airoha_hw_cleanup() argument 1564 struct airoha_eth *eth = port->qdma->eth; airoha_update_hw_stats() local 1792 struct airoha_eth *eth = port->qdma->eth; airoha_set_gdm2_loopback() local 1854 struct airoha_eth *eth = port->eth; airoha_dev_init() local 1910 struct airoha_eth *eth = port->qdma->eth; airoha_dev_change_mtu() local 1986 struct airoha_eth *eth = qdma->eth; airoha_get_fe_port() local 2144 struct airoha_eth *eth = port->qdma->eth; airoha_ethtool_get_drvinfo() local 2744 struct airoha_eth *eth = port->qdma->eth; airoha_dev_setup_tc_block_cb() local 2943 airoha_is_valid_gdm_port(struct airoha_eth * eth,struct airoha_gdm_port * port) airoha_is_valid_gdm_port() argument 2956 airoha_alloc_gdm_port(struct airoha_eth * eth,struct device_node * np) airoha_alloc_gdm_port() argument 3032 airoha_register_gdm_devices(struct airoha_eth * eth) airoha_register_gdm_devices() argument 3057 struct airoha_eth *eth; airoha_probe() local 3170 struct airoha_eth *eth = platform_get_drvdata(pdev); airoha_remove() local [all...] |
| H A D | airoha_ppe.c | 40 if (airoha_is_7583(ppe->eth)) in airoha_ppe_get_num_stats_entries() 51 struct airoha_eth *eth = ppe->eth; in airoha_ppe_get_total_num_stats_entries() local 53 num_stats = num_stats * eth->soc->num_ppe; in airoha_ppe_get_total_num_stats_entries() 61 struct airoha_eth *eth = ppe->eth; in airoha_ppe_get_total_sram_num_entries() local 63 return PPE_SRAM_NUM_ENTRIES * eth->soc->num_ppe; in airoha_ppe_get_total_sram_num_entries() 73 bool airoha_ppe_is_enabled(struct airoha_eth *eth, int index) in airoha_ppe_is_enabled() argument 75 if (index >= eth->soc->num_ppe) in airoha_ppe_is_enabled() 78 return airoha_fe_rr(eth, REG_PPE_GLO_CF in airoha_ppe_is_enabled() 91 struct airoha_eth *eth = qdma->eth; airoha_ppe_set_cpu_port() local 105 struct airoha_eth *eth = ppe->eth; airoha_ppe_hw_init() local 190 airoha_ppe_flow_mangle_eth(const struct flow_action_entry * act,void * eth) airoha_ppe_flow_mangle_eth() argument 300 airoha_ppe_foe_entry_prepare(struct airoha_eth * eth,struct airoha_foe_entry * hwe,struct net_device * dev,int type,struct airoha_flow_data * data,int l4proto) airoha_ppe_foe_entry_prepare() argument 643 struct airoha_eth *eth = ppe->eth; airoha_ppe_foe_get_entry_locked() local 722 struct airoha_eth *eth = ppe->eth; airoha_ppe_foe_commit_entry() local 1033 airoha_ppe_flow_offload_replace(struct airoha_eth * eth,struct flow_cls_offload * f) airoha_ppe_flow_offload_replace() argument 1233 airoha_ppe_flow_offload_destroy(struct airoha_eth * eth,struct flow_cls_offload * f) airoha_ppe_flow_offload_destroy() argument 1254 struct airoha_eth *eth = ppe->eth; airoha_ppe_foe_entry_get_stats() local 1286 airoha_ppe_flow_offload_stats(struct airoha_eth * eth,struct flow_cls_offload * f) airoha_ppe_flow_offload_stats() argument 1312 airoha_ppe_flow_offload_cmd(struct airoha_eth * eth,struct flow_cls_offload * f) airoha_ppe_flow_offload_cmd() argument 1347 airoha_ppe_npu_get(struct airoha_eth * eth) airoha_ppe_npu_get() argument 1359 airoha_ppe_wait_for_npu_init(struct airoha_eth * eth) airoha_ppe_wait_for_npu_init() argument 1382 airoha_ppe_offload_setup(struct airoha_eth * eth) airoha_ppe_offload_setup() argument 1425 struct airoha_eth *eth = ppe->eth; airoha_ppe_setup_tc_block_cb() local 1468 struct airoha_eth *eth = port->qdma->eth; airoha_ppe_init_upd_mem() local 1491 struct airoha_eth *eth; airoha_ppe_get_dev() local 1535 struct airoha_eth *eth = ppe->eth; airoha_ppe_put_dev() local 1542 airoha_ppe_init(struct airoha_eth * eth) airoha_ppe_init() argument 1612 airoha_ppe_deinit(struct airoha_eth * eth) airoha_ppe_deinit() argument [all...] |
| H A D | airoha_eth.h | 438 struct ethhdr eth; 524 struct airoha_eth *eth; 546 struct airoha_eth *eth; 575 struct airoha_eth *eth; 630 #define airoha_fe_rr(eth, offset) \ 631 airoha_rr((eth)->fe_regs, (offset)) 632 #define airoha_fe_wr(eth, offset, val) \ 633 airoha_wr((eth)->fe_regs, (offset), (val)) 634 #define airoha_fe_rmw(eth, offset, mask, val) \ in airoha_qdma_get_txq() 635 airoha_rmw((eth) in airoha_qdma_get_txq() 437 struct ethhdr eth; global() member 523 struct airoha_eth *eth; global() member 538 struct airoha_eth *eth; global() member 559 struct airoha_eth *eth; global() member 612 airoha_fe_rr(eth,offset) global() argument 614 airoha_fe_wr(eth,offset,val) global() argument 616 airoha_fe_rmw(eth,offset,mask,val) global() argument 618 airoha_fe_set(eth,offset,val) global() argument 620 airoha_fe_clear(eth,offset,val) global() argument 648 airoha_is_7581(struct airoha_eth * eth) airoha_is_7581() argument 653 airoha_is_7583(struct airoha_eth * eth) airoha_is_7583() argument [all...] |
| /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
| H A D | taprio.json | 15 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… 39 "verifyCmd": "$TC qdisc show dev $ETH", 59 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… 61 "verifyCmd": "$TC qdisc show dev $ETH", 80 …"$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 queues … 82 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:", 84 "verifyCmd": "$TC qdisc show dev $ETH", 104 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2… [all …]
|
| H A D | mq.json | 15 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", 39 "verifyCmd": "$TC qdisc show dev $ETH", 58 "$TC qdisc add dev $ETH root handle 1: mq" 60 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq", 62 "verifyCmd": "$TC qdisc show dev $ETH", 82 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: mq", 84 "verifyCmd": "$TC qdisc show dev $ETH", 103 "$TC qdisc add dev $ETH root handle 1: mq", [all …]
|
| H A D | multiq.json | 15 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq", 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq", 39 "verifyCmd": "$TC class show dev $ETH", 59 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: multiq", 61 "verifyCmd": "$TC qdisc show dev $ETH", 80 "$TC qdisc add dev $ETH root handle 1: multiq", 81 "$TC qdisc del dev $ETH root handle 1:" 83 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:", 85 "verifyCmd": "$TC qdisc show dev $ETH", [all …]
|
| H A D | mqprio.json | 15 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues … 17 "verifyCmd": "$TC qdisc show dev $ETH", 37 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: mqprio", 39 "verifyCmd": "$TC qdisc show dev $ETH", 58 …"$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 … 59 "$TC qdisc del dev $ETH root handle 1:" 61 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:", 63 "verifyCmd": "$TC qdisc show dev $ETH", 83 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues … 85 "verifyCmd": "$TC qdisc show dev $ETH", [all …]
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | xdp_native.bpf.c | 75 struct ethhdr *eth; in filter_udphdr() local 78 err = bpf_xdp_pull_data(ctx, sizeof(*eth)); in filter_udphdr() 83 data = eth = (void *)(long)ctx->data; in filter_udphdr() 85 if (data + sizeof(*eth) > data_end) in filter_udphdr() 88 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in filter_udphdr() 91 err = bpf_xdp_pull_data(ctx, sizeof(*eth) + sizeof(*iph) + in filter_udphdr() 99 iph = data + sizeof(*eth); in filter_udphdr() 105 udph = data + sizeof(*iph) + sizeof(*eth); in filter_udphdr() 106 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in filter_udphdr() 109 err = bpf_xdp_pull_data(ctx, sizeof(*eth) + sizeof(*ipv6h) + in filter_udphdr() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | xdp_hw_metadata.c | 35 struct ethhdr *eth; in rx() local 40 eth = data; in rx() 42 if (eth + 1 < data_end && (eth->h_proto == bpf_htons(ETH_P_8021AD) || in rx() 43 eth->h_proto == bpf_htons(ETH_P_8021Q))) in rx() 44 eth = (void *)eth + sizeof(struct vlan_hdr); in rx() 46 if (eth + 1 < data_end && eth->h_proto == bpf_htons(ETH_P_8021Q)) in rx() 47 eth = (void *)eth + sizeof(struct vlan_hdr); in rx() 49 if (eth + 1 < data_end) { in rx() 50 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx() 51 iph = (void *)(eth + 1); in rx() [all …]
|
| H A D | test_xdp_meta.c | 35 static bool check_smac(const struct ethhdr *eth) in check_smac() argument 37 return !__builtin_memcmp(eth->h_source, smac_want, ETH_ALEN); in check_smac() 287 struct ethhdr *eth = ctx_ptr(ctx, data); in ing_xdp_zalloc_meta() local 292 if (eth + 1 > ctx_ptr(ctx, data_end)) in ing_xdp_zalloc_meta() 294 if (!check_smac(eth)) in ing_xdp_zalloc_meta() 314 struct ethhdr *eth; in ing_xdp() local 325 eth = (struct ethhdr *)data; in ing_xdp() 336 if (!check_smac(eth)) in ing_xdp() 351 struct ethhdr *eth = ctx_ptr(ctx, data); in clone_data_meta_survives_data_write() local 353 if (eth + 1 > ctx_ptr(ctx, data_end)) in clone_data_meta_survives_data_write() [all …]
|
| H A D | xdping_kern.c | |
| H A D | xdp_metadata.c | 42 struct ethhdr *eth = NULL; in rx() 51 eth = data; in rx() 52 if (eth + 1 < data_end) { in rx() 53 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx() 54 iph = (void *)(eth + 1); in rx() 58 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in rx() 59 ip6h = (void *)(eth + 1); in rx() 35 struct ethhdr *eth = NULL; rx() local
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | qca,ar71xx.yaml | 20 - qca,ar7100-eth # Atheros AR7100 21 - qca,ar7240-eth # Atheros AR7240 22 - qca,ar7241-eth # Atheros AR7241 23 - qca,ar7242-eth # Atheros AR7242 24 - qca,ar9130-eth # Atheros AR9130 25 - qca,ar9330-eth # Atheros AR9330 26 - qca,ar9340-eth # Atheros AR9340 27 - qca,qca9530-eth # Qualcomm Atheros QCA9530 28 - qca,qca9550-eth # Qualcomm Atheros QCA9550 29 - qca,qca9560-eth # Qualcomm Atheros QCA9560 [all …]
|
| H A D | cirrus,ep9301-eth.yaml | 4 $id: http://devicetree.org/schemas/net/cirrus,ep9301-eth.yaml# 19 - const: cirrus,ep9301-eth 22 - cirrus,ep9302-eth 23 - cirrus,ep9307-eth 24 - cirrus,ep9312-eth 25 - cirrus,ep9315-eth 26 - const: cirrus,ep9301-eth 54 compatible = "cirrus,ep9301-eth";
|
| H A D | marvell-orion-net.txt | 25 - compatible: shall be one of "marvell,orion-eth", "marvell,kirkwood-eth". 35 - compatible: shall be one of "marvell,orion-eth-port", 36 "marvell,kirkwood-eth-port". 68 eth: ethernet-controller@72000 { 69 compatible = "marvell,orion-eth"; 77 compatible = "marvell,orion-eth-port";
|
| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | pedit.json | 672 "name": "Add pedit action with LAYERED_OP eth set src", 689 "cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66", 692 "matchPattern": "action order [0-9]+: pedit action pass keys 2.*key #0 at eth\\+4: val 00001122 mask ffff0000.*key #1 at eth\\+8: val 33445566 mask 00000000", 700 "name": "Add pedit action with LAYERED_OP eth set src & dst", 717 "cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66 munge eth dst set ff:ee:dd:cc:bb:aa", 720 "matchPattern": "eth\\+4: val 00001122 mask ffff0000.*eth\\+8: val 33445566 mask 00000000.*eth\\ [all...] |
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | ah.c | 93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah() 94 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah() 103 &ah->av.eth.s_mac[0]); in create_iboe_ah() 110 ah->av.eth.gid_index = ret; in create_iboe_ah() 113 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah() 118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_iboe_ah() 120 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah() 121 ah->av.eth.hop_limit = grh->hop_limit; in create_iboe_ah() 123 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + in create_iboe_ah() 125 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah() [all …]
|
| /linux/arch/mips/pci/ |
| H A D | fixup-sni.c | 23 #define ETH PCIMT_IRQ_ETHERNET macro 47 { ETH, ETH, ETH, ETH, ETH }, /* Ethernet */ 81 #undef ETH 93 #define ETH PCIT_IRQ_ETHERNET macro 104 { ETH, ETH, ETH, ETH, ETH }, /* Ethernet */
|
| /linux/net/ethernet/ |
| H A D | eth.c | 9 * Version: @(#)eth.c 1.0.7 05/25/93 83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local 86 eth->h_proto = htons(type); in eth_header() 88 eth->h_proto = htons(len); in eth_header() 96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header() 99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header() 108 eth_zero_addr(eth->h_dest); in eth_header() 128 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() local 132 if (unlikely(len < sizeof(*eth))) in eth_get_headlen() 137 eth->h_proto, sizeof(*eth), in eth_get_headlen() [all …]
|
| /linux/tools/testing/selftests/net/openvswitch/ |
| H A D | openvswitch.sh | 21 arp_ping eth-arp: Basic arp ping between two NS 285 'in_port(1),eth(),eth_type(0x0800),ipv4()' \ 297 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1 299 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1 303 'in_port(1),eth(),eth_type(0x0800),ipv4()' \ 306 'in_port(2),eth(),eth_type(0x0800),ipv4()' \ 338 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1 340 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1 343 fwd_flow="$fwd_flow,in_port(1),eth(),eth_type(0x0800),ipv4()" 348 'in_port(2),eth(),eth_typ [all...] |
| /linux/drivers/scsi/fnic/ |
| H A D | fip.h | 51 struct ethhdr eth; member 62 struct ethhdr eth; member 69 struct ethhdr eth; member 94 struct ethhdr eth; member 107 struct ethhdr eth; member 138 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument 141 struct fip_header *fiph = (struct fip_header *)(eth + 1); in fnic_debug_dump_fip_frame() 149 fnic_debug_dump(fnic, (uint8_t *)eth, len); in fnic_debug_dump_fip_frame() 155 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 19 struct ethhdr eth; member 25 struct ethhdr eth; member 32 struct ethhdr eth; member 40 struct ethhdr eth; member 46 struct ethhdr eth; member 58 struct ethhdr eth; member 73 struct ethhdr eth; member 102 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 124 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 145 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), [all …]
|