Home
last modified time | relevance | path

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

12345

/f-stack/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 …]
/f-stack/freebsd/net/
H A Dfirewire.h45 uint32_t ether_type :16; member
47 uint32_t ether_type :16;
57 uint32_t ether_type :16; member
61 uint32_t ether_type :16;
H A Dif_ethersubr.c194 memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); in ether_requestencap()
234 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
249 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
448 if (ntohs(eh->ether_type) == ETHERTYPE_VLAN || in ether_set_pcp()
449 ntohs(eh->ether_type) == ETHERTYPE_QINQ) in ether_set_pcp()
494 switch (ntohs(eh->ether_type)) { in ether_output_frame()
545 etype = ntohs(eh->ether_type); in ether_input_internal()
846 u_short ether_type; in ether_demux() local
859 ether_type = ntohs(eh->ether_type); in ether_demux()
900 switch (ether_type) { in ether_demux()
H A Dif_fwsubr.c246 enc->unfrag.ether_type = type; in firewire_output()
293 enc->firstfrag.ether_type = type; in firewire_output()
538 type = enc->firstfrag.ether_type; in firewire_input()
541 type = enc->unfrag.ether_type; in firewire_input()
H A Dif_llc.h81 u_int16_t ether_type; member
/f-stack/dpdk/app/test/
H A Dtest_sched.c102 vlan1 = (struct rte_vlan_hdr *)(&eth_hdr->ether_type); in prepare_pkt()
104 (uintptr_t)&eth_hdr->ether_type + sizeof(struct rte_vlan_hdr)); in prepare_pkt()
106 (uintptr_t)&eth_hdr->ether_type + in prepare_pkt()
109 (uintptr_t)eth_hdr + sizeof(eth_hdr->ether_type)); in prepare_pkt()
113 eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4); in prepare_pkt()
H A Dpacket_burst_generator.c56 struct rte_ether_addr *dst_mac, uint16_t ether_type, in initialize_eth_header() argument
66 eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN); in initialize_eth_header()
68 vhdr->eth_proto = rte_cpu_to_be_16(ether_type); in initialize_eth_header()
71 eth_hdr->ether_type = rte_cpu_to_be_16(ether_type); in initialize_eth_header()
H A Dpacket_burst_generator.h29 struct rte_ether_addr *dst_mac, uint16_t ether_type,
/f-stack/dpdk/lib/librte_node/
H A Dethdev_rx.c110 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
115 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
120 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
125 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
137 etype = eth_hdr->ether_type; in eth_pkt_parse_cb()
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_flow_verbs.c501 eth.val.ether_type &= eth.mask.ether_type; in flow_verbs_translate_item_eth()
532 e->val.ether_type = eth->val.ether_type; in flow_verbs_item_vlan_update()
533 e->mask.ether_type = eth->mask.ether_type; in flow_verbs_item_vlan_update()
576 eth.val.ether_type &= eth.mask.ether_type; in flow_verbs_translate_item_vlan()
1271 ether_type = in flow_verbs_validate()
1274 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 …]
/f-stack/dpdk/lib/librte_net/
H A Drte_ether.h267 uint16_t ether_type; /**< Frame type. */ member
321 if (eh->ether_type != rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN)) in rte_vlan_strip()
367 nh->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN); in rte_vlan_insert()
H A Drte_arp.c34 eth_hdr->ether_type = RTE_BE16(RTE_ETHER_TYPE_RARP); in rte_net_make_rarp_packet()
/f-stack/dpdk/examples/ip_fragmentation/
H A Dmain.c245 uint16_t port_out, ether_type; in l3fwd_simple_forward() local
258 ether_type = eth->ether_type; in l3fwd_simple_forward()
368 eth_hdr->ether_type = ether_type; in l3fwd_simple_forward()
687 uint16_t ether_type; in parse_ptype() local
690 ether_type = eth_hdr->ether_type; in parse_ptype()
691 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) in parse_ptype()
693 else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6)) in parse_ptype()
/f-stack/dpdk/examples/bond/
H A Dmain.c368 uint16_t ether_type, offset; in lcore_main() local
409 ether_type = eth_hdr->ether_type; in lcore_main()
410 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN)) in lcore_main()
412 offset = get_vlan_offset(eth_hdr, &ether_type); in lcore_main()
415 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_ARP)) { in lcore_main()
440 } else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) { in lcore_main()
525 eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_ARP); in cmd_obj_send_parsed()
/f-stack/freebsd/netgraph/
H A Dng_pppoe.c1075 privp->eh.ether_type = in ng_pppoe_rcvmsg()
1158 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1203 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1485 neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; in ng_pppoe_rcvdata()
1596 switch(wh->eh.ether_type) { in ng_pppoe_rcvdata_ether()
1828 if (sp->pkt_hdr.eh.ether_type == in ng_pppoe_rcvdata_ether()
1830 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1833 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1876 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1879 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
[all …]
/f-stack/dpdk/drivers/net/i40e/
H A Di40e_fdir.c814 uint16_t *ether_type; in i40e_flow_fdir_fill_eth_ip_head() local
860 *ether_type = fdir_input->flow.l2_flow.ether_type; in i40e_flow_fdir_fill_eth_ip_head()
886 ether_type); in i40e_flow_fdir_fill_eth_ip_head()
892 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
895 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
898 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
901 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
904 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
907 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
910 len, ether_type); in i40e_flow_fdir_fill_eth_ip_head()
[all …]
/f-stack/dpdk/examples/l3fwd/
H A Dl3fwd_lpm.c587 uint16_t ether_type; in lpm_parse_ptype() local
590 ether_type = eth_hdr->ether_type; in lpm_parse_ptype()
591 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) in lpm_parse_ptype()
593 else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6)) in lpm_parse_ptype()
H A Dl3fwd_em.c571 uint16_t ether_type; in em_parse_ptype() local
578 ether_type = eth_hdr->ether_type; in em_parse_ptype()
580 if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4)) { in em_parse_ptype()
591 } else if (ether_type == rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6)) { in em_parse_ptype()
/f-stack/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()
/f-stack/freebsd/net80211/
H A Dieee80211_input.c318 !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) || in ieee80211_decap()
319 llc->llc_snap.ether_type == htons(ETHERTYPE_IPX))) { in ieee80211_decap()
353 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh)); in ieee80211_decap()
380 *framelen = ntohs(eh->ether_type) /* encap'd frame size */ in ieee80211_decap1()
382 eh->ether_type = llc->llc_un.type_snap.ether_type; in ieee80211_decap1()
/f-stack/dpdk/examples/pipeline/examples/
H A Dl2fwd_macswp.spec10 bit<16> ether_type
/f-stack/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()
505 uint16_t ether_type = eth_h->ether_type; in mode6_debug() local
540 uint16_t ether_type, offset; in bond_ethdev_rx_burst_alb() local
548 ether_type = eth_h->ether_type; in bond_ethdev_rx_burst_alb()
549 offset = get_vlan_offset(eth_h, &ether_type); in bond_ethdev_rx_burst_alb()
711 proto = eth_hdr->ether_type; in burst_xmit_l23_hash()
751 proto = eth_hdr->ether_type; in burst_xmit_l34_hash()
987 uint16_t ether_type, offset; in bond_ethdev_tx_burst_alb() local
1017 ether_type = eth_h->ether_type; in bond_ethdev_tx_burst_alb()
[all …]
/f-stack/lib/
H A Dff_dpdk_if.c1168 uint16_t ether_type = rte_be_to_cpu_16(hdr->ether_type); in protocol_filter() local
1172 if (ether_type == RTE_ETHER_TYPE_VLAN) { in protocol_filter()
1174 ether_type = rte_be_to_cpu_16(vlanhdr->eth_proto); in protocol_filter()
1179 if(ether_type == RTE_ETHER_TYPE_ARP) in protocol_filter()
1183 if (ether_type == RTE_ETHER_TYPE_IPV6) { in protocol_filter()
1185 len, ether_type); in protocol_filter()
1196 if(ether_type != RTE_ETHER_TYPE_IPV4) in protocol_filter()
1200 len, ether_type); in protocol_filter()
1306 vlanhdr->eth_proto = etherhdr->ether_type;
1307 etherhdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN);
/f-stack/freebsd/arm64/broadcom/genet/
H A Dif_genet.c1007 int ether_type = mtod(m, struct ether_header *)->ether_type; in gen_encap() local
1008 if (ntohs(ether_type) == ETHERTYPE_IPV6 && in gen_encap()
1152 uint16_t ether_type; in gen_parse_tx() local
1204 if (((struct ether_header *)p)->ether_type == htons(ETHERTYPE_VLAN)) { in gen_parse_tx()
1206 ether_type = ntohs(((struct ether_vlan_header *)p)->evl_proto); in gen_parse_tx()
1219 ether_type = ntohs(((struct ether_header *)p)->ether_type); in gen_parse_tx()
1231 if (ether_type == ETHERTYPE_IP) { in gen_parse_tx()
1234 } else if (ether_type == ETHERTYPE_IPV6) { in gen_parse_tx()

12345