Home
last modified time | relevance | path

Searched refs:ether_type (Results 1 – 25 of 91) sorted by relevance

1234

/dpdk/drivers/net/igc/
H A Digc_filter.c38 if (igc->ethertype_filters[i].ether_type == 0) { in igc_ethertype_filter_lookup()
49 if (igc->ethertype_filters[i].ether_type == ethertype) in igc_ethertype_filter_lookup()
64 if (filter->ether_type == 0) { in igc_del_ethertype_filter()
74 filter->ether_type); in igc_del_ethertype_filter()
78 igc->ethertype_filters[ret].ether_type = 0; in igc_del_ethertype_filter()
94 if (filter->ether_type == RTE_ETHER_TYPE_IPV4 || in igc_add_ethertype_filter()
95 filter->ether_type == RTE_ETHER_TYPE_IPV6 || in igc_add_ethertype_filter()
96 filter->ether_type == 0) { in igc_add_ethertype_filter()
99 filter->ether_type); in igc_add_ethertype_filter()
106 filter->ether_type); in igc_add_ethertype_filter()
[all …]
H A Digc_flow.c345 ether->ether_type = rte_be_to_cpu_16(spec->type); in igc_parse_pattern_ether()
348 if (ether->ether_type == RTE_ETHER_TYPE_IPV4 || in igc_parse_pattern_ether()
349 ether->ether_type == RTE_ETHER_TYPE_IPV6 || in igc_parse_pattern_ether()
350 ether->ether_type == 0) in igc_parse_pattern_ether()
/dpdk/app/test/
H A Dtest_sched.c111 vlan1 = (struct rte_vlan_hdr *)(&eth_hdr->ether_type); in prepare_pkt()
113 (uintptr_t)&eth_hdr->ether_type + sizeof(struct rte_vlan_hdr)); in prepare_pkt()
115 (uintptr_t)&eth_hdr->ether_type + in prepare_pkt()
118 (uintptr_t)eth_hdr + sizeof(eth_hdr->ether_type)); in prepare_pkt()
122 eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4); in prepare_pkt()
H A Dpacket_burst_generator.c57 struct rte_ether_addr *dst_mac, uint16_t ether_type, in initialize_eth_header() argument
67 eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN); in initialize_eth_header()
69 vhdr->eth_proto = rte_cpu_to_be_16(ether_type); in initialize_eth_header()
72 eth_hdr->ether_type = rte_cpu_to_be_16(ether_type); in initialize_eth_header()
H A Dtest_pcapng.c67 .ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4), in mbuf1_prepare()
204 src, dst, rte_be_to_cpu_16(eh->ether_type), h->len); in pkt_print()
H A Dpacket_burst_generator.h29 struct rte_ether_addr *dst_mac, uint16_t ether_type,
/dpdk/lib/node/
H A Dethdev_rx.c109 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
114 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
119 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
124 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
136 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
/dpdk/drivers/net/mlx5/
H A Dmlx5_flow_verbs.c448 eth.val.ether_type &= eth.mask.ether_type; in flow_verbs_translate_item_eth()
479 e->val.ether_type = eth->val.ether_type; in flow_verbs_item_vlan_update()
480 e->mask.ether_type = eth->mask.ether_type; in flow_verbs_item_vlan_update()
523 eth.val.ether_type &= eth.mask.ether_type; in flow_verbs_translate_item_vlan()
1269 ether_type = in flow_verbs_validate()
1272 ether_type &= in flow_verbs_validate()
1277 ether_type = rte_be_to_cpu_16(ether_type); in flow_verbs_validate()
1279 ether_type = 0; in flow_verbs_validate()
1292 ether_type = in flow_verbs_validate()
1295 ether_type &= in flow_verbs_validate()
[all …]
/dpdk/examples/ip_fragmentation/
H A Dmain.c248 uint16_t port_out, ether_type; in l3fwd_simple_forward() local
261 ether_type = eth->ether_type; in l3fwd_simple_forward()
371 eth_hdr->ether_type = ether_type; in l3fwd_simple_forward()
690 uint16_t ether_type; in parse_ptype() local
693 ether_type = eth_hdr->ether_type; in parse_ptype()
694 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) in parse_ptype()
696 else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6)) in parse_ptype()
/dpdk/lib/net/
H A Drte_ether.h276 rte_be16_t ether_type; /**< Frame type. */ member
330 if (eh->ether_type != rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN)) in rte_vlan_strip()
376 nh->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN); in rte_vlan_insert()
H A Drte_arp.c33 eth_hdr->ether_type = RTE_BE16(RTE_ETHER_TYPE_RARP); in rte_net_make_rarp_packet()
/dpdk/examples/bond/
H A Dmain.c365 uint16_t ether_type, offset; in lcore_main() local
406 ether_type = eth_hdr->ether_type; in lcore_main()
407 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN)) in lcore_main()
409 offset = get_vlan_offset(eth_hdr, &ether_type); in lcore_main()
412 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_ARP)) { in lcore_main()
437 } else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) { in lcore_main()
524 eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_ARP); in cmd_obj_send_parsed()
/dpdk/drivers/net/i40e/
H A Di40e_fdir.c813 uint16_t *ether_type; in i40e_flow_fdir_fill_eth_ip_head() local
859 *ether_type = fdir_input->flow.l2_flow.ether_type; in i40e_flow_fdir_fill_eth_ip_head()
885 ether_type); in i40e_flow_fdir_fill_eth_ip_head()
891 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
894 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
897 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
900 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
903 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
906 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
909 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
[all …]
H A Di40e_flow.c2388 uint16_t ether_type; in i40e_flow_parse_fdir_pattern() local
2461 ether_type == RTE_ETHER_TYPE_IPV4 || in i40e_flow_parse_fdir_pattern()
2462 ether_type == RTE_ETHER_TYPE_IPV6 || in i40e_flow_parse_fdir_pattern()
2463 ether_type == i40e_get_outer_vlan(dev)) { in i40e_flow_parse_fdir_pattern()
2471 filter->input.flow.l2_flow.ether_type = in i40e_flow_parse_fdir_pattern()
2512 ether_type = in i40e_flow_parse_fdir_pattern()
2515 if (ether_type == RTE_ETHER_TYPE_IPV4 || in i40e_flow_parse_fdir_pattern()
2516 ether_type == RTE_ETHER_TYPE_IPV6 || in i40e_flow_parse_fdir_pattern()
2517 ether_type == i40e_get_outer_vlan(dev)) { in i40e_flow_parse_fdir_pattern()
2525 filter->input.flow.l2_flow.ether_type = in i40e_flow_parse_fdir_pattern()
[all …]
/dpdk/examples/l3fwd/
H A Dl3fwd_lpm.c688 uint16_t ether_type; in lpm_parse_ptype() local
691 ether_type = eth_hdr->ether_type; in lpm_parse_ptype()
692 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) in lpm_parse_ptype()
694 else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6)) in lpm_parse_ptype()
H A Dl3fwd_em.c516 uint16_t ether_type; in em_parse_ptype() local
523 ether_type = eth_hdr->ether_type; in em_parse_ptype()
525 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) { in em_parse_ptype()
536 } else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6)) { in em_parse_ptype()
/dpdk/examples/bpf/
H A Dt3.c41 if (eth->ether_type == htons(ETHERTYPE_ARP)) in entry()
H A Dt1.c41 if (ether_header->ether_type != htons(0x0800)) in entry()
/dpdk/drivers/net/bonding/
H A Drte_eth_bond_pmd.c341 is_lacp_packets(hdr->ether_type, subtype, in rx_burst_8023ad()
351 if (hdr->ether_type == ether_type_slow_be) { in rx_burst_8023ad()
501 uint16_t ether_type = eth_h->ether_type; in mode6_debug() local
536 uint16_t ether_type, offset; in bond_ethdev_rx_burst_alb() local
544 ether_type = eth_h->ether_type; in bond_ethdev_rx_burst_alb()
545 offset = get_vlan_offset(eth_h, &ether_type); in bond_ethdev_rx_burst_alb()
707 proto = eth_hdr->ether_type; in burst_xmit_l23_hash()
747 proto = eth_hdr->ether_type; in burst_xmit_l34_hash()
983 uint16_t ether_type, offset; in bond_ethdev_tx_burst_alb() local
1013 ether_type = eth_h->ether_type; in bond_ethdev_tx_burst_alb()
[all …]
H A Drte_eth_bond_alb.c219 eth_h->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN); in bond_mode_alb_arp_upd()
221 eth_h->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_ARP); in bond_mode_alb_arp_upd()
/dpdk/examples/pipeline/examples/
H A Dl2fwd_macswp.spec10 bit<16> ether_type
/dpdk/lib/pcapng/
H A Drte_pcapng.c345 pcapng_vlan_insert(struct rte_mbuf *m, uint16_t ether_type, uint16_t tci) in pcapng_vlan_insert() argument
363 nh->ether_type = rte_cpu_to_be_16(ether_type); in pcapng_vlan_insert()
/dpdk/drivers/net/hns3/
H A Dhns3_flow.c508 rule->key_conf.mask.ether_type = in hns3_parse_eth()
524 rule->key_conf.spec.ether_type = rte_be_to_cpu_16(eth_spec->type); in hns3_parse_eth()
595 rule->key_conf.spec.ether_type = RTE_ETHER_TYPE_IPV4; in hns3_parse_ipv4()
596 rule->key_conf.mask.ether_type = ETHER_TYPE_MASK; in hns3_parse_ipv4()
654 rule->key_conf.spec.ether_type = RTE_ETHER_TYPE_IPV6; in hns3_parse_ipv6()
655 rule->key_conf.mask.ether_type = ETHER_TYPE_MASK; in hns3_parse_ipv6()
867 rule->key_conf.spec.ether_type; in hns3_handle_tunnel()
869 rule->key_conf.mask.ether_type; in hns3_handle_tunnel()
871 rule->key_conf.spec.ether_type = 0; in hns3_handle_tunnel()
872 rule->key_conf.mask.ether_type = 0; in hns3_handle_tunnel()
/dpdk/drivers/net/sfc/
H A Dsfc_flow.c1099 uint16_t ether_type; in sfc_flow_parse_pppoex() local
1113 ether_type = RTE_ETHER_TYPE_PPPOE_DISCOVERY; in sfc_flow_parse_pppoex()
1115 ether_type = RTE_ETHER_TYPE_PPPOE_SESSION; in sfc_flow_parse_pppoex()
1118 if (efx_spec->efs_ether_type != ether_type) { in sfc_flow_parse_pppoex()
1126 efx_spec->efs_ether_type = ether_type; in sfc_flow_parse_pppoex()
2286 uint16_t ether_type; in sfc_flow_is_match_flags_exception() local
2299 ether_type = spec_filter->filters[i].efs_ether_type; in sfc_flow_is_match_flags_exception()
2301 (ether_type == EFX_ETHER_TYPE_IPV4 || in sfc_flow_is_match_flags_exception()
2302 ether_type == EFX_ETHER_TYPE_IPV6)) in sfc_flow_is_match_flags_exception()
/dpdk/drivers/net/enic/
H A Denic_flow.c553 arg->l2_proto_off = *off + offsetof(struct rte_ether_hdr, ether_type); in enic_copy_item_inner_eth_v2()
668 enic_spec.ether_type = spec->type; in enic_copy_item_eth_v2()
669 enic_mask.ether_type = mask->type; in enic_copy_item_eth_v2()
702 if (eth_mask->ether_type) in enic_copy_item_vlan_v2()
722 eth_mask->ether_type = mask->inner_type; in enic_copy_item_vlan_v2()
723 eth_val->ether_type = spec->inner_type; in enic_copy_item_vlan_v2()

1234