| /dpdk/drivers/net/enetc/ |
| H A D | enetc_rxtx.c | 181 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 …]
|
| /dpdk/drivers/net/dpaa/ |
| H A D | dpaa_rxtx.c | 133 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() 821 if (!mbuf->packet_type) { in dpaa_eth_mbuf_to_sg_fd() [all …]
|
| /dpdk/drivers/net/enic/ |
| H A D | enic_rxtx_common.h | 213 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()
|
| /dpdk/lib/node/ |
| H A D | pkt_cls.c | 77 l0 = mbuf0->packet_type & in pkt_cls_node_process() 79 l1 = mbuf1->packet_type & in pkt_cls_node_process() 81 l2 = mbuf2->packet_type & in pkt_cls_node_process() 83 l3 = mbuf3->packet_type & in pkt_cls_node_process() 174 l0 = mbuf0->packet_type & in pkt_cls_node_process()
|
| H A D | ethdev_rx.c | 110 mbuf0->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb() 115 mbuf1->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb() 120 mbuf2->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb() 125 mbuf3->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb() 137 mbuf0->packet_type = l3_ptype(etype, 0); in eth_pkt_parse_cb()
|
| /dpdk/examples/l3fwd/ |
| H A D | l3fwd_altivec.h | 73 &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() 138 pkt->packet_type); in process_packet()
|
| H A D | l3fwd_sse.h | 53 &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 D | l3fwd_lpm_sse.h | 25 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 D | l3fwd_lpm_altivec.h | 27 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 D | l3fwd_neon.h | 53 &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 D | l3fwd_lpm_neon.h | 28 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 D | l3fwd_lpm.c | 82 if (RTE_ETH_IS_IPV4_HDR(pkt->packet_type)) { in lpm_get_dst_port() 89 } else if (RTE_ETH_IS_IPV6_HDR(pkt->packet_type)) { in lpm_get_dst_port() 114 if (RTE_ETH_IS_IPV4_HDR(pkt->packet_type)) { in lpm_get_dst_port_with_ipv4() 119 } else if (RTE_ETH_IS_IPV6_HDR(pkt->packet_type)) { in lpm_get_dst_port_with_ipv4() 251 &mbuf->port, mbuf->packet_type); in lpm_process_event_pkt() 687 uint32_t packet_type = RTE_PTYPE_UNKNOWN; in lpm_parse_ptype() local 693 packet_type |= RTE_PTYPE_L3_IPV4_EXT_UNKNOWN; in lpm_parse_ptype() 695 packet_type |= RTE_PTYPE_L3_IPV6_EXT_UNKNOWN; in lpm_parse_ptype() 697 m->packet_type = packet_type; in lpm_parse_ptype()
|
| H A D | l3fwd_em.h | 86 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 D | l3fwd_em.c | 515 uint32_t packet_type = RTE_PTYPE_UNKNOWN; in em_parse_ptype() local 529 packet_type |= RTE_PTYPE_L3_IPV4; in em_parse_ptype() 531 packet_type |= RTE_PTYPE_L4_TCP; in em_parse_ptype() 533 packet_type |= RTE_PTYPE_L4_UDP; in em_parse_ptype() 535 packet_type |= RTE_PTYPE_L3_IPV4_EXT; in em_parse_ptype() 539 packet_type |= RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_TCP; in em_parse_ptype() 541 packet_type |= RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_UDP; in em_parse_ptype() 543 packet_type |= RTE_PTYPE_L3_IPV6_EXT_UNKNOWN; in em_parse_ptype() 546 m->packet_type = packet_type; in em_parse_ptype()
|
| H A D | l3fwd_lpm.h | 18 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()
|
| /dpdk/lib/gro/ |
| H A D | rte_gro.c | 243 if (IS_IPV4_VXLAN_TCP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst() 252 } else if (IS_IPV4_VXLAN_UDP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst() 261 } else if (IS_IPV4_TCP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst() 269 } else if (IS_IPV4_UDP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble_burst() 352 if (IS_IPV4_VXLAN_TCP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble() 357 } else if (IS_IPV4_VXLAN_UDP4_PKT(pkts[i]->packet_type) && in rte_gro_reassemble() 362 } else if (IS_IPV4_TCP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble() 367 } else if (IS_IPV4_UDP_PKT(pkts[i]->packet_type) && in rte_gro_reassemble()
|
| /dpdk/drivers/net/qede/ |
| H A D | qede_rxtx.c | 1119 return packet_type; in qede_rx_cqe_to_pkt_type_outer() 1526 uint32_t packet_type; in qede_recv_pkts_regular() local 1574 packet_type = RTE_PTYPE_UNKNOWN; in qede_recv_pkts_regular() 1638 packet_type = in qede_recv_pkts_regular() 1642 packet_type |= in qede_recv_pkts_regular() 1705 rx_mb->packet_type = packet_type; in qede_recv_pkts_regular() 1760 uint32_t packet_type; in qede_recv_pkts() local 1799 packet_type = RTE_PTYPE_UNKNOWN; in qede_recv_pkts() 1912 packet_type = in qede_recv_pkts() 1916 packet_type |= in qede_recv_pkts() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_rxtx_vec_neon.h | 292 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 D | mlx5_rxtx_vec_sse.h | 278 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 …]
|
| /dpdk/app/test/ |
| H A D | test_cksum.c | 94 uint32_t packet_type; in test_l4_cksum() local 112 packet_type = rte_net_get_ptype(m, &hdr_lens, RTE_PTYPE_ALL_MASK); in test_l4_cksum() 113 l3 = packet_type & RTE_PTYPE_L3_MASK; in test_l4_cksum() 114 l4 = packet_type & RTE_PTYPE_L4_MASK; in test_l4_cksum()
|
| /dpdk/app/test-pmd/ |
| H A D | util.c | 79 uint16_t i, packet_type; in dump_pkt_burst() local 108 packet_type = mb->packet_type; in dump_pkt_burst() 109 is_encapsulation = RTE_ETH_IS_TUNNEL_PKT(packet_type); in dump_pkt_burst() 204 if (mb->packet_type) { in dump_pkt_burst() 205 rte_get_ptype_name(mb->packet_type, buf, sizeof(buf)); in dump_pkt_burst() 247 if (RTE_ETH_IS_IPV4_HDR(packet_type)) { in dump_pkt_burst() 273 "last_rsvd = %d", packet_type, in dump_pkt_burst()
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | ipip.h | 81 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()
|
| /dpdk/drivers/net/mvneta/ |
| H A D | mvneta_rxtx.c | 238 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 …]
|
| /dpdk/drivers/net/vmxnet3/ |
| H A D | vmxnet3_rxtx.c | 729 uint32_t packet_type = rxm->packet_type; in vmxnet3_rx_offload() local 734 packet_type |= RTE_PTYPE_L2_ETHER; in vmxnet3_rx_offload() 774 packet_type |= RTE_PTYPE_L4_TCP; in vmxnet3_rx_offload() 776 packet_type |= RTE_PTYPE_L4_UDP; in vmxnet3_rx_offload() 779 packet_type |= RTE_PTYPE_L4_TCP; in vmxnet3_rx_offload() 782 packet_type |= RTE_PTYPE_L4_UDP; in vmxnet3_rx_offload() 792 packet_type |= RTE_PTYPE_L4_TCP; in vmxnet3_rx_offload() 794 packet_type |= RTE_PTYPE_L4_UDP; in vmxnet3_rx_offload() 805 packet_type |= RTE_PTYPE_UNKNOWN; in vmxnet3_rx_offload() 816 rxm->packet_type = packet_type; in vmxnet3_rx_offload() [all …]
|
| /dpdk/drivers/net/dpaa2/ |
| H A D | dpaa2_rxtx.c | 60 m->packet_type = RTE_PTYPE_UNKNOWN; in dpaa2_dev_rx_parse_new() 63 m->packet_type = RTE_PTYPE_L2_ETHER; in dpaa2_dev_rx_parse_new() 66 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new() 70 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new() 74 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new() 78 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new() 82 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new() 86 m->packet_type = RTE_PTYPE_L2_ETHER | in dpaa2_dev_rx_parse_new() 128 frc, m->packet_type, m->ol_flags); in dpaa2_dev_rx_parse_new() 317 first_seg->packet_type = in eth_sg_fd_to_mbuf() [all …]
|