Searched refs:eth (Results 76 - 100 of 268) sorted by relevance

1234567891011

/linux-master/net/netfilter/
H A Dnft_inner.c60 struct ethhdr *eth, _eth; local
63 eth = skb_header_pointer(pkt->skb, off, sizeof(_eth), &_eth);
64 if (!eth)
67 switch (eth->h_proto) {
70 llproto = eth->h_proto;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline_dynptr.c328 struct eth_hdr *eth, __u64 off,
453 *(u32 *)eth->eth_dest = tkey.remote_ipv4;
462 struct eth_hdr *eth; local
470 eth = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
471 if (!eth)
473 eth_proto = eth->eth_proto;
475 err = process_packet(&ptr, eth, nh_off, false, ctx);
477 err = process_packet(&ptr, eth, nh_off, true, ctx);
481 if (eth == buffer)
327 process_packet(struct bpf_dynptr *skb_ptr, struct eth_hdr *eth, __u64 off, bool is_ipv6, struct __sk_buff *skb) argument
H A Dbpf_flow.c171 struct ethhdr *eth, _eth; local
215 eth = bpf_flow_dissect_get_header(skb, sizeof(*eth),
217 if (!eth)
220 keys->thoff += sizeof(*eth);
222 return parse_eth_proto(skb, eth->h_proto);
H A Dtest_xdp_dynptr.c235 struct ethhdr *eth; local
241 eth = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
242 if (!eth)
245 h_proto = eth->h_proto;
H A Dtest_xdp.c217 struct ethhdr *eth = data; local
220 if (eth + 1 > data_end)
223 h_proto = eth->h_proto;
H A Dtest_xdp_loop.c213 struct ethhdr *eth = data; local
216 if (eth + 1 > data_end)
219 h_proto = eth->h_proto;
H A Dtest_xdp_noinline.c391 struct eth_hdr *eth; local
393 eth = data;
394 memcpy(tmp_mac, eth->eth_source, 6);
395 memcpy(eth->eth_source, eth->eth_dest, 6);
396 memcpy(eth->eth_dest, tmp_mac, 6);
778 struct eth_hdr *eth = data; local
785 eth_proto = bpf_ntohs(eth->eth_proto);
797 struct eth_hdr *eth = data; local
804 eth_proto = bpf_ntohs(eth
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c847 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN);
848 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk,
850 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN);
851 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk,
853 if (spec->eth.ether_type_enable) {
854 rule_hw->eth
[all...]
/linux-master/tools/testing/selftests/net/lib/
H A Dcsum.c399 static void eth_str_to_addr(const char *str, unsigned char *eth) argument
402 &eth[0], &eth[1], &eth[2], &eth[3], &eth[4], &eth[5]) != 6)
411 struct ethhdr eth; local
441 eth_str_to_addr(cfg_mac_src, eth.h_source);
442 eth_str_to_addr(cfg_mac_dst, eth
[all...]
/linux-master/include/linux/
H A Detherdevice.h9 * Version: @(#)eth.h 1.0.4 05/13/93
625 const struct ethhdr *eth = eth_hdr(skb); local
627 if (unlikely(!ether_addr_equal_64bits(eth->h_dest, dev->dev_addr))) {
628 if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) {
629 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast))
641 struct ethhdr *eth = (struct ethhdr *)skb->data; local
644 return eth;
/linux-master/net/openvswitch/
H A Dflow_netlink.c191 if (match->key->eth.type == htons(ETH_P_ARP)
192 || match->key->eth.type == htons(ETH_P_RARP)) {
194 if (match->mask && (match->mask->key.eth.type == htons(0xffff)))
198 if (eth_p_mpls(match->key->eth.type)) {
200 if (match->mask && (match->mask->key.eth.type == htons(0xffff)))
204 if (match->key->eth.type == htons(ETH_P_IP)) {
206 if (match->mask && match->mask->key.eth.type == htons(0xffff)) {
241 if (match->key->eth.type == htons(ETH_P_IPV6)) {
243 if (match->mask && match->mask->key.eth.type == htons(0xffff)) {
292 if (match->key->eth
[all...]
/linux-master/drivers/net/ethernet/pensando/ionic/
H A Dionic_ethtool.c828 return le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz);
843 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz);
995 if (ionic->ident.lif.eth.hwstamp_tx_modes & mask)
999 if (ionic->ident.lif.eth.hwstamp_tx_modes & mask)
1008 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask)
1012 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask)
1016 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask)
1020 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask)
1024 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) == mask)
1028 if ((ionic->ident.lif.eth
[all...]
H A Dionic_debugfs.c50 seq_printf(seq, "max_ucast_filters: %d\n", ident->lif.eth.max_ucast_filters);
51 seq_printf(seq, "max_mcast_filters: %d\n", ident->lif.eth.max_mcast_filters);
70 (u32 *)&ionic->ident.lif.eth.config.queue_count[IONIC_QTYPE_TXQ]);
72 (u32 *)&ionic->ident.lif.eth.config.queue_count[IONIC_QTYPE_RXQ]);
/linux-master/arch/um/drivers/
H A Dnet_kern.c389 "net_device for eth%d\n", n);
400 snprintf(dev->name, sizeof(dev->name), "eth%d", n);
547 static int check_transport(struct transport *transport, char *eth, int n, argument
553 if (strncmp(eth, transport->name, len))
556 eth += len;
557 if (*eth == ',')
558 eth++;
559 else if (*eth != '\0')
566 if (!transport->setup(eth, mac_out, *init_out)) {
576 struct eth_init *eth; local
[all...]
/linux-master/net/mac80211/
H A Dwme.c150 const struct ethhdr *eth = (void *)skb->data; local
159 !is_multicast_ether_addr(eth->h_dest)) ||
/linux-master/tools/testing/selftests/bpf/
H A Dnetwork_helpers.h38 struct ethhdr eth; member in struct:ipv4_packet
46 struct ethhdr eth; member in struct:ipv6_packet
/linux-master/drivers/net/ipvlan/
H A Dipvlan_core.c608 struct ethhdr *eth = skb_eth_hdr(skb); local
614 ether_addr_equal(eth->h_dest, eth->h_source)) {
639 } else if (is_multicast_ether_addr(eth->h_dest)) {
680 struct ethhdr *eth = eth_hdr(skb); local
685 if (ether_addr_equal(eth->h_source, skb->dev->dev_addr)) {
723 struct ethhdr *eth = eth_hdr(skb); local
726 if (is_multicast_ether_addr(eth->h_dest)) {
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmpls.c84 attr->esw_attr->eth.h_proto = act->mpls_pop.proto;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dparse_tcp_hdr_opt.c15 .pk6_v6.eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/linux-master/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c220 struct ethhdr *eth = data; local
223 if (eth + 1 > data_end)
226 h_proto = eth->h_proto;
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_l2.c1774 p_common->rx_64_byte_packets += port_stats.eth.r64;
1775 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127;
1776 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255;
1777 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511;
1778 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023;
1779 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518;
1780 p_common->rx_crc_errors += port_stats.eth.rfcs;
1781 p_common->rx_mac_crtl_frames += port_stats.eth.rxcf;
1782 p_common->rx_pause_frames += port_stats.eth.rxpf;
1783 p_common->rx_pfc_frames += port_stats.eth
[all...]
/linux-master/drivers/clk/mediatek/
H A DMakefile35 obj-$(CONFIG_COMMON_CLK_MT2701_ETHSYS) += clk-mt2701-eth.o
51 obj-$(CONFIG_COMMON_CLK_MT7622_ETHSYS) += clk-mt7622-eth.o
55 obj-$(CONFIG_COMMON_CLK_MT7629_ETHSYS) += clk-mt7629-eth.o
60 obj-$(CONFIG_COMMON_CLK_MT7981_ETHSYS) += clk-mt7981-eth.o
64 obj-$(CONFIG_COMMON_CLK_MT7986_ETHSYS) += clk-mt7986-eth.o
68 obj-$(CONFIG_COMMON_CLK_MT7988) += clk-mt7988-eth.o
/linux-master/drivers/usb/gadget/legacy/
H A Dg_ffs.c116 int (*eth)(struct usb_configuration *c); member in struct:gfs_configuration
123 .eth = bind_rndis_config,
129 .eth = eth_bind_config,
486 if (gc->eth) {
487 ret = gc->eth(c);
/linux-master/drivers/net/plip/
H A Dplip.c546 struct ethhdr *eth; local
551 eth = eth_hdr(skb);
553 if(is_multicast_ether_addr(eth->h_dest))
555 if(ether_addr_equal_64bits(eth->h_dest, dev->broadcast))
566 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN)
567 return eth->h_proto;
1011 plip_rewrite_address(const struct net_device *dev, struct ethhdr *eth) argument
1021 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
1022 memset(eth->h_dest, 0xfc, 2);
1023 memcpy(eth
1050 struct ethhdr *eth; local
[all...]
/linux-master/drivers/net/
H A Damt.c518 struct ethhdr *eth; local
529 skb_push(skb, sizeof(*eth));
536 skb_pull(skb, sizeof(*eth));
552 eth = eth_hdr(skb);
553 ether_addr_copy(eth->h_source, amt->dev->dev_addr);
554 ip_eth_mc_map(htonl(INADDR_ALLHOSTS_GROUP), eth->h_dest);
555 eth->h_proto = htons(ETH_P_IP);
575 skb_push(skb, sizeof(*eth) + sizeof(*iph) + AMT_IPHDR_OPTS);
814 struct ethhdr *eth; local
823 skb_push(skb, sizeof(*eth));
2282 struct ethhdr *eth; local
2350 struct ethhdr *eth, *oeth; local
2450 struct ethhdr *eth; local
[all...]

Completed in 505 milliseconds

1234567891011