Home
last modified time | relevance | path

Searched refs:packet_type (Results 1 – 25 of 96) sorted by relevance

1234

/f-stack/dpdk/drivers/net/enetc/
H A Denetc_rxtx.c181 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
186 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
191 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
198 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
205 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
212 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
219 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
226 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
233 m->packet_type = RTE_PTYPE_L2_ETHER | in enetc_slow_parsing()
248 m->packet_type = RTE_PTYPE_UNKNOWN; in enetc_slow_parsing()
[all …]
/f-stack/dpdk/drivers/net/dpaa/
H A Ddpaa_rxtx.c133 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa_eth_packet_info()
137 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa_eth_packet_info()
141 m->packet_type = RTE_PTYPE_L2_ETHER; in dpaa_eth_packet_info()
147 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa_eth_packet_info()
154 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa_eth_packet_info()
158 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa_eth_packet_info()
162 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa_eth_packet_info()
216 m->packet_type = 0; in dpaa_eth_packet_info()
316 if (!mbuf->packet_type) { in dpaa_unsegmented_checksum()
822 if (!mbuf->packet_type) { in dpaa_eth_mbuf_to_sg_fd()
[all …]
/f-stack/dpdk/drivers/net/enic/
H A Denic_rxtx_common.h213 mbuf->packet_type |= RTE_PTYPE_L2_ETHER; in enic_cq_rx_to_pkt_flags()
217 mbuf->packet_type |= RTE_PTYPE_L2_ETHER_VLAN; in enic_cq_rx_to_pkt_flags()
219 mbuf->packet_type |= RTE_PTYPE_L2_ETHER; in enic_cq_rx_to_pkt_flags()
244 if (mbuf->packet_type & (RTE_PTYPE_L3_IPV4 | RTE_PTYPE_L3_IPV6)) { in enic_cq_rx_to_pkt_flags()
247 l4_flags = mbuf->packet_type & RTE_PTYPE_L4_MASK; in enic_cq_rx_to_pkt_flags()
255 if (mbuf->packet_type & RTE_PTYPE_L3_IPV4) { in enic_cq_rx_to_pkt_flags()
/f-stack/dpdk/lib/librte_node/
H A Dethdev_rx.c111 mbuf0->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb()
116 mbuf1->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb()
121 mbuf2->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb()
126 mbuf3->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb()
138 mbuf0->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb()
H A Dpkt_cls.c81 l0 = mbuf0->packet_type & in pkt_cls_node_process()
83 l1 = mbuf1->packet_type & in pkt_cls_node_process()
85 l2 = mbuf2->packet_type & in pkt_cls_node_process()
87 l3 = mbuf3->packet_type & in pkt_cls_node_process()
178 l0 = mbuf0->packet_type & in pkt_cls_node_process()
/f-stack/dpdk/examples/l3fwd/
H A Dl3fwd_lpm.c113 if (RTE_ETH_IS_IPV4_HDR(pkt->packet_type)) { in lpm_get_dst_port()
120 } else if (RTE_ETH_IS_IPV6_HDR(pkt->packet_type)) { in lpm_get_dst_port()
145 if (RTE_ETH_IS_IPV4_HDR(pkt->packet_type)) { in lpm_get_dst_port_with_ipv4()
150 } else if (RTE_ETH_IS_IPV6_HDR(pkt->packet_type)) { in lpm_get_dst_port_with_ipv4()
271 if (RTE_ETH_IS_IPV4_HDR(mbuf->packet_type)) { in lpm_process_event_pkt()
586 uint32_t packet_type = RTE_PTYPE_UNKNOWN; in lpm_parse_ptype() local
592 packet_type |= RTE_PTYPE_L3_IPV4_EXT_UNKNOWN; in lpm_parse_ptype()
594 packet_type |= RTE_PTYPE_L3_IPV6_EXT_UNKNOWN; in lpm_parse_ptype()
596 m->packet_type = packet_type; in lpm_parse_ptype()
H A Dl3fwd_lpm_sse.h25 ipv4_flag[0] = pkt[0]->packet_type & RTE_PTYPE_L3_IPV4; in processx4_step1()
30 ipv4_flag[0] &= pkt[1]->packet_type; in processx4_step1()
35 ipv4_flag[0] &= pkt[2]->packet_type; in processx4_step1()
40 ipv4_flag[0] &= pkt[3]->packet_type; in processx4_step1()
H A Dl3fwd_altivec.h73 &dst_port[0], pkt[0]->packet_type); in processx4_step3()
76 &dst_port[1], pkt[1]->packet_type); in processx4_step3()
79 &dst_port[2], pkt[2]->packet_type); in processx4_step3()
82 &dst_port[3], pkt[3]->packet_type); in processx4_step3()
137 pkt->packet_type); in process_packet()
H A Dl3fwd_sse.h53 &dst_port[0], pkt[0]->packet_type); in processx4_step3()
56 &dst_port[1], pkt[1]->packet_type); in processx4_step3()
59 &dst_port[2], pkt[2]->packet_type); in processx4_step3()
62 &dst_port[3], pkt[3]->packet_type); in processx4_step3()
117 pkt->packet_type); in process_packet()
H A Dl3fwd_lpm_altivec.h27 ipv4_flag[0] = pkt[0]->packet_type & RTE_PTYPE_L3_IPV4; in processx4_step1()
33 ipv4_flag[0] &= pkt[1]->packet_type; in processx4_step1()
39 ipv4_flag[0] &= pkt[2]->packet_type; in processx4_step1()
45 ipv4_flag[0] &= pkt[3]->packet_type; in processx4_step1()
H A Dl3fwd_neon.h53 &dst_port[0], pkt[0]->packet_type); in processx4_step3()
56 &dst_port[1], pkt[1]->packet_type); in processx4_step3()
59 &dst_port[2], pkt[2]->packet_type); in processx4_step3()
62 &dst_port[3], pkt[3]->packet_type); in processx4_step3()
121 pkt->packet_type); in process_packet()
H A Dl3fwd_lpm_neon.h28 ipv4_flag[0] = pkt[0]->packet_type & RTE_PTYPE_L3_IPV4; in processx4_step1()
33 ipv4_flag[0] &= pkt[1]->packet_type; in processx4_step1()
38 ipv4_flag[0] &= pkt[2]->packet_type; in processx4_step1()
43 ipv4_flag[0] &= pkt[3]->packet_type; in processx4_step1()
H A Dl3fwd_em.h86 tcp_or_udp = m->packet_type & (RTE_PTYPE_L4_TCP | RTE_PTYPE_L4_UDP); in l3fwd_em_simple_forward()
87 l3_ptypes = m->packet_type & RTE_PTYPE_L3_MASK; in l3fwd_em_simple_forward()
109 tcp_or_udp = m->packet_type & (RTE_PTYPE_L4_TCP | RTE_PTYPE_L4_UDP); in l3fwd_em_simple_process()
110 l3_ptypes = m->packet_type & RTE_PTYPE_L3_MASK; in l3fwd_em_simple_process()
H A Dl3fwd_em.c570 uint32_t packet_type = RTE_PTYPE_UNKNOWN; in em_parse_ptype() local
584 packet_type |= RTE_PTYPE_L3_IPV4; in em_parse_ptype()
586 packet_type |= RTE_PTYPE_L4_TCP; in em_parse_ptype()
588 packet_type |= RTE_PTYPE_L4_UDP; in em_parse_ptype()
590 packet_type |= RTE_PTYPE_L3_IPV4_EXT; in em_parse_ptype()
594 packet_type |= RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_TCP; in em_parse_ptype()
596 packet_type |= RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_UDP; in em_parse_ptype()
598 packet_type |= RTE_PTYPE_L3_IPV6_EXT_UNKNOWN; in em_parse_ptype()
601 m->packet_type = packet_type; in em_parse_ptype()
H A Dl3fwd_lpm.h18 if (RTE_ETH_IS_IPV4_HDR(m->packet_type)) { in l3fwd_lpm_simple_forward()
50 } else if (RTE_ETH_IS_IPV6_HDR(m->packet_type)) { in l3fwd_lpm_simple_forward()
/f-stack/dpdk/app/test-pmd/
H A Dutil.c68 uint16_t i, packet_type; in dump_pkt_burst() local
92 packet_type = mb->packet_type; in dump_pkt_burst()
93 is_encapsulation = RTE_ETH_IS_TUNNEL_PKT(packet_type); in dump_pkt_burst()
163 if (mb->packet_type) { in dump_pkt_burst()
164 rte_get_ptype_name(mb->packet_type, buf, sizeof(buf)); in dump_pkt_burst()
198 if (RTE_ETH_IS_IPV4_HDR(packet_type)) { in dump_pkt_burst()
223 packet_type, udp_port, vx_vni >> 8); in dump_pkt_burst()
/f-stack/dpdk/lib/librte_gro/
H A Drte_gro.c244 if (IS_IPV4_VXLAN_TCP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst()
253 } else if (IS_IPV4_VXLAN_UDP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst()
262 } else if (IS_IPV4_TCP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst()
270 } else if (IS_IPV4_UDP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst()
353 if (IS_IPV4_VXLAN_TCP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble()
358 } else if (IS_IPV4_VXLAN_UDP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble()
363 } else if (IS_IPV4_TCP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble()
368 } else if (IS_IPV4_UDP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble()
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_rxtx_vec_neon.h292 elts[pos]->packet_type = in rxq_cq_decompress_v()
295 elts[pos + 1]->packet_type = in rxq_cq_decompress_v()
298 elts[pos + 2]->packet_type = in rxq_cq_decompress_v()
301 elts[pos + 3]->packet_type = in rxq_cq_decompress_v()
305 elts[pos]->packet_type |= in rxq_cq_decompress_v()
308 elts[pos + 1]->packet_type |= in rxq_cq_decompress_v()
311 elts[pos + 2]->packet_type |= in rxq_cq_decompress_v()
314 elts[pos + 3]->packet_type |= in rxq_cq_decompress_v()
455 pkts[0]->packet_type = mlx5_ptype_table[pt_idx0] | in rxq_cq_to_ptype_oflags_v()
457 pkts[1]->packet_type = mlx5_ptype_table[pt_idx1] | in rxq_cq_to_ptype_oflags_v()
[all …]
H A Dmlx5_rxtx_vec_sse.h278 elts[pos]->packet_type = in rxq_cq_decompress_v()
281 elts[pos + 1]->packet_type = in rxq_cq_decompress_v()
284 elts[pos + 2]->packet_type = in rxq_cq_decompress_v()
287 elts[pos + 3]->packet_type = in rxq_cq_decompress_v()
291 elts[pos]->packet_type |= in rxq_cq_decompress_v()
294 elts[pos + 1]->packet_type |= in rxq_cq_decompress_v()
297 elts[pos + 2]->packet_type |= in rxq_cq_decompress_v()
300 elts[pos + 3]->packet_type |= in rxq_cq_decompress_v()
463 pkts[0]->packet_type = mlx5_ptype_table[pt_idx0] | in rxq_cq_to_ptype_oflags_v()
465 pkts[1]->packet_type = mlx5_ptype_table[pt_idx1] | in rxq_cq_to_ptype_oflags_v()
[all …]
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipip.h81 m->packet_type &= ~RTE_PTYPE_L4_MASK; in ipip_outbound()
160 m->packet_type &= ~RTE_PTYPE_L4_MASK; in ipip_inbound()
162 m->packet_type |= RTE_PTYPE_L4_UDP; in ipip_inbound()
164 m->packet_type |= RTE_PTYPE_L4_TCP; in ipip_inbound()
/f-stack/dpdk/drivers/net/qede/
H A Dqede_rxtx.c1122 return packet_type; in qede_rx_cqe_to_pkt_type_outer()
1532 uint32_t packet_type; in qede_recv_pkts_regular() local
1579 packet_type = RTE_PTYPE_UNKNOWN; in qede_recv_pkts_regular()
1643 packet_type = in qede_recv_pkts_regular()
1647 packet_type |= in qede_recv_pkts_regular()
1710 rx_mb->packet_type = packet_type; in qede_recv_pkts_regular()
1765 uint32_t packet_type; in qede_recv_pkts() local
1803 packet_type = RTE_PTYPE_UNKNOWN; in qede_recv_pkts()
1916 packet_type = in qede_recv_pkts()
1920 packet_type |= in qede_recv_pkts()
[all …]
/f-stack/dpdk/drivers/net/mvneta/
H A Dmvneta_rxtx.c238 uint64_t packet_type; in mvneta_desc_to_packet_type_and_offset() local
243 packet_type = RTE_PTYPE_L2_ETHER; in mvneta_desc_to_packet_type_and_offset()
246 packet_type |= RTE_PTYPE_L2_ETHER_VLAN; in mvneta_desc_to_packet_type_and_offset()
251 packet_type |= RTE_PTYPE_L3_IPV4; in mvneta_desc_to_packet_type_and_offset()
254 packet_type |= RTE_PTYPE_L3_IPV6; in mvneta_desc_to_packet_type_and_offset()
257 packet_type |= RTE_PTYPE_UNKNOWN; in mvneta_desc_to_packet_type_and_offset()
264 packet_type |= RTE_PTYPE_L4_TCP; in mvneta_desc_to_packet_type_and_offset()
267 packet_type |= RTE_PTYPE_L4_UDP; in mvneta_desc_to_packet_type_and_offset()
270 packet_type |= RTE_PTYPE_UNKNOWN; in mvneta_desc_to_packet_type_and_offset()
275 return packet_type; in mvneta_desc_to_packet_type_and_offset()
[all …]
/f-stack/dpdk/drivers/net/dpaa2/
H A Ddpaa2_rxtx.c59 m->packet_type = RTE_PTYPE_UNKNOWN; in dpaa2_dev_rx_parse_new()
62 m->packet_type = RTE_PTYPE_L2_ETHER; in dpaa2_dev_rx_parse_new()
65 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new()
69 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new()
73 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new()
77 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new()
81 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new()
85 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new()
127 frc, m->packet_type, m->ol_flags); in dpaa2_dev_rx_parse_new()
304 first_seg->packet_type = in eth_sg_fd_to_mbuf()
[all …]
/f-stack/dpdk/drivers/net/vmxnet3/
H A Dvmxnet3_rxtx.c727 uint32_t packet_type = rxm->packet_type; in vmxnet3_rx_offload() local
732 packet_type |= RTE_PTYPE_L2_ETHER; in vmxnet3_rx_offload()
772 packet_type |= RTE_PTYPE_L4_TCP; in vmxnet3_rx_offload()
774 packet_type |= RTE_PTYPE_L4_UDP; in vmxnet3_rx_offload()
777 packet_type |= RTE_PTYPE_L4_TCP; in vmxnet3_rx_offload()
780 packet_type |= RTE_PTYPE_L4_UDP; in vmxnet3_rx_offload()
790 packet_type |= RTE_PTYPE_L4_TCP; in vmxnet3_rx_offload()
792 packet_type |= RTE_PTYPE_L4_UDP; in vmxnet3_rx_offload()
803 packet_type |= RTE_PTYPE_UNKNOWN; in vmxnet3_rx_offload()
814 rxm->packet_type = packet_type; in vmxnet3_rx_offload()
[all …]
/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_rxtx.h555 hns3_rx_set_cksum_flag(struct rte_mbuf *rxm, const uint64_t packet_type, in hns3_rx_set_cksum_flag() argument
558 if (unlikely((packet_type & RTE_PTYPE_TUNNEL_MASK))) { in hns3_rx_set_cksum_flag()
559 if (likely(packet_type & RTE_PTYPE_INNER_L3_MASK) && in hns3_rx_set_cksum_flag()
562 if (likely(packet_type & RTE_PTYPE_INNER_L4_MASK) && in hns3_rx_set_cksum_flag()
565 if (likely(packet_type & RTE_PTYPE_L4_MASK) && in hns3_rx_set_cksum_flag()
569 if (likely(packet_type & RTE_PTYPE_L3_MASK) && in hns3_rx_set_cksum_flag()
572 if (likely(packet_type & RTE_PTYPE_L4_MASK) && in hns3_rx_set_cksum_flag()

1234