| /f-stack/dpdk/lib/librte_ip_frag/ |
| H A D | rte_ipv4_fragmentation.c | 25 static inline void __fill_ipv4hdr_frag(struct rte_ipv4_hdr *dst, in __fill_ipv4hdr_frag() 26 const struct rte_ipv4_hdr *src, uint16_t len, uint16_t fofs, in __fill_ipv4hdr_frag() 74 struct rte_ipv4_hdr *in_hdr; in rte_ipv4_fragment_packet() 96 in_hdr = rte_pktmbuf_mtod(pkt_in, struct rte_ipv4_hdr *); in rte_ipv4_fragment_packet() 109 in_seg_data_pos = sizeof(struct rte_ipv4_hdr); in rte_ipv4_fragment_packet() 117 struct rte_ipv4_hdr *out_hdr; in rte_ipv4_fragment_packet() 127 out_pkt->data_len = sizeof(struct rte_ipv4_hdr); in rte_ipv4_fragment_packet() 128 out_pkt->pkt_len = sizeof(struct rte_ipv4_hdr); in rte_ipv4_fragment_packet() 177 out_hdr = rte_pktmbuf_mtod(out_pkt, struct rte_ipv4_hdr *); in rte_ipv4_fragment_packet() 184 out_pkt->pkt_len - sizeof(struct rte_ipv4_hdr)); in rte_ipv4_fragment_packet() [all …]
|
| /f-stack/dpdk/app/test-pmd/ |
| H A D | txonly.c | 104 setup_pkt_udp_ip_headers(struct rte_ipv4_hdr *ip_hdr, in setup_pkt_udp_ip_headers() 162 struct rte_ipv4_hdr *ip_hdr; in update_pkt_header() 169 sizeof(struct rte_ipv4_hdr) + in update_pkt_header() 174 sizeof(struct rte_ipv4_hdr)); in update_pkt_header() 179 ip_hdr = rte_pktmbuf_mtod_offset(pkt, struct rte_ipv4_hdr *, in update_pkt_header() 215 pkt->l3_len = sizeof(struct rte_ipv4_hdr); in pkt_burst_prepare() 234 struct rte_ipv4_hdr *ip_hdr; in pkt_burst_prepare() 238 struct rte_ipv4_hdr *, in pkt_burst_prepare() 253 sizeof(struct rte_ipv4_hdr)); in pkt_burst_prepare() 304 sizeof(struct rte_ipv4_hdr) + in pkt_burst_prepare() [all …]
|
| H A D | csumonly.c | 150 struct rte_ipv4_hdr *ipv4_hdr; in parse_ethernet() 167 ipv4_hdr = (struct rte_ipv4_hdr *) in parse_ethernet() 203 struct rte_ipv4_hdr *ipv4_hdr; in parse_gtp() 232 ipv4_hdr = (struct rte_ipv4_hdr *)((char *)gtp_hdr + in parse_gtp() 284 struct rte_ipv4_hdr *ipv4_hdr; in parse_vxlan_gpe() 336 struct rte_ipv4_hdr *ipv4_hdr; in parse_geneve() 351 ipv4_hdr = (struct rte_ipv4_hdr *)((char *)geneve_hdr + in parse_geneve() 382 struct rte_ipv4_hdr *ipv4_hdr; in parse_gre() 430 struct rte_ipv4_hdr *ipv4_hdr = encap_ip; in parse_encap_ip() 460 struct rte_ipv4_hdr *ipv4_hdr = l3_hdr; in process_inner_cksums() [all …]
|
| /f-stack/dpdk/lib/librte_gso/ |
| H A D | gso_tunnel_tcp4.c | 12 struct rte_ipv4_hdr *ipv4_hdr; in update_tunnel_ipv4_tcp_headers() 26 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in update_tunnel_ipv4_tcp_headers() 31 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in update_tunnel_ipv4_tcp_headers() 63 struct rte_ipv4_hdr *inner_ipv4_hdr; in gso_tunnel_tcp4_segment() 68 inner_ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in gso_tunnel_tcp4_segment()
|
| H A D | gso_udp4.c | 14 struct rte_ipv4_hdr *ipv4_hdr; in update_ipv4_udp_headers() 26 struct rte_ipv4_hdr *, l2_hdrlen); in update_ipv4_udp_headers() 45 struct rte_ipv4_hdr *ipv4_hdr; in gso_udp4_segment() 51 ipv4_hdr = rte_pktmbuf_mtod_offset(pkt, struct rte_ipv4_hdr *, in gso_udp4_segment()
|
| H A D | gso_tcp4.c | 12 struct rte_ipv4_hdr *ipv4_hdr; in update_ipv4_tcp_headers() 19 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char*) + in update_ipv4_tcp_headers() 43 struct rte_ipv4_hdr *ipv4_hdr; in gso_tcp4_segment() 49 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in gso_tcp4_segment()
|
| H A D | rte_gso.h | 22 sizeof(struct rte_ipv4_hdr) + sizeof(struct rte_tcp_hdr) + 1) 26 sizeof(struct rte_ipv4_hdr) + sizeof(struct rte_udp_hdr) + 1)
|
| /f-stack/dpdk/lib/librte_ipsec/ |
| H A D | iph.h | 49 struct rte_ipv4_hdr *v4h; in update_trs_l3hdr() 143 struct rte_ipv4_hdr *v4out_h; in update_outb_tun_tos() 158 itp = ((const struct rte_ipv4_hdr *)ref_h)->type_of_service & in update_outb_tun_tos() 172 itp = ((const struct rte_ipv4_hdr *)ref_h)->type_of_service & in update_outb_tun_tos() 194 struct rte_ipv4_hdr *v4in_h; in update_inb_tun_tos() 222 ecn_v4out = ((const struct rte_ipv4_hdr *)ref_h)-> in update_inb_tun_tos() 232 ecn_v4out = ((const struct rte_ipv4_hdr *)ref_h)-> in update_inb_tun_tos() 246 struct rte_ipv4_hdr *v4h; in update_tun_outb_l3hdr()
|
| /f-stack/dpdk/app/test/ |
| H A D | packet_burst_generator.c | 156 initialize_ipv4_header(struct rte_ipv4_hdr *ip_hdr, uint32_t src_addr, in initialize_ipv4_header() 166 pkt_len = (uint16_t) (pkt_data_len + sizeof(struct rte_ipv4_hdr)); in initialize_ipv4_header() 214 pkt_len = (uint16_t) (pkt_data_len + sizeof(struct rte_ipv4_hdr)); in initialize_ipv4_header_proto() 305 copy_buf_to_pkt(ip_hdr, sizeof(struct rte_ipv4_hdr), in generate_packet_burst() 308 eth_hdr_size + sizeof(struct rte_ipv4_hdr)); in generate_packet_burst() 326 pkt->l3_len = sizeof(struct rte_ipv4_hdr); in generate_packet_burst() 386 copy_buf_to_pkt(ip_hdr, sizeof(struct rte_ipv4_hdr), in generate_packet_burst_proto() 393 sizeof(struct rte_ipv4_hdr)); in generate_packet_burst_proto() 399 sizeof(struct rte_ipv4_hdr)); in generate_packet_burst_proto() 405 sizeof(struct rte_ipv4_hdr)); in generate_packet_burst_proto() [all …]
|
| H A D | test_ipfrag.c | 99 memset(data, fill, sizeof(struct rte_ipv4_hdr) + s); in v4_allocate_packet_of() 101 struct rte_ipv4_hdr *hdr = (struct rte_ipv4_hdr *)data; in v4_allocate_packet_of() 105 b->pkt_len = s + sizeof(struct rte_ipv4_hdr); in v4_allocate_packet_of()
|
| H A D | test_flow_classify.c | 43 offsetof(struct rte_ipv4_hdr, next_proto_id), 53 offsetof(struct rte_ipv4_hdr, src_addr), 63 offsetof(struct rte_ipv4_hdr, dst_addr), 76 sizeof(struct rte_ipv4_hdr) + 86 sizeof(struct rte_ipv4_hdr) + 467 struct rte_ipv4_hdr pkt_ipv4_hdr; in init_ipv4_udp_traffic() 504 struct rte_ipv4_hdr pkt_ipv4_hdr; in init_ipv4_tcp_traffic() 541 struct rte_ipv4_hdr pkt_ipv4_hdr; in init_ipv4_sctp_traffic()
|
| /f-stack/dpdk/examples/l3fwd/ |
| H A D | l3fwd_lpm_sse.h | 18 struct rte_ipv4_hdr *ipv4_hdr; in processx4_step1() 23 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 28 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 33 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 38 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()
|
| H A D | l3fwd_lpm_altivec.h | 20 struct rte_ipv4_hdr *ipv4_hdr; in processx4_step1() 25 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 31 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 37 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 43 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()
|
| H A D | l3fwd_lpm_neon.h | 21 struct rte_ipv4_hdr *ipv4_hdr; in processx4_step1() 26 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 31 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 36 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1() 41 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()
|
| H A D | l3fwd_altivec.h | 71 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 74 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 77 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 80 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 136 rfc1812_process((struct rte_ipv4_hdr *)(eth_hdr + 1), dst_port, in process_packet()
|
| H A D | l3fwd_sse.h | 51 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 54 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 57 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 60 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 116 rfc1812_process((struct rte_ipv4_hdr *)(eth_hdr + 1), dst_port, in process_packet()
|
| H A D | l3fwd_neon.h | 51 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 54 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 57 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 60 rfc1812_process((struct rte_ipv4_hdr *) in processx4_step3() 120 rfc1812_process((struct rte_ipv4_hdr *)(eth_hdr + 1), dst_port, in process_packet()
|
| H A D | l3fwd.h | 141 is_valid_ipv4_pkt(struct rte_ipv4_hdr *pkt, uint32_t link_len) in is_valid_ipv4_pkt() 148 if (link_len < sizeof(struct rte_ipv4_hdr)) in is_valid_ipv4_pkt() 173 if (rte_cpu_to_be_16(pkt->total_length) < sizeof(struct rte_ipv4_hdr)) in is_valid_ipv4_pkt()
|
| /f-stack/dpdk/lib/librte_node/ |
| H A D | ip4_lookup_sse.h | 17 struct rte_ipv4_hdr *ipv4_hdr; in ip4_lookup_node_process_vec() 75 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf0, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 83 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf1, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 91 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf2, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 99 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf3, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 200 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf0, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec()
|
| H A D | ip4_lookup_neon.h | 16 struct rte_ipv4_hdr *ipv4_hdr; in ip4_lookup_node_process_vec() 79 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf0, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 87 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf1, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 95 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf2, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 103 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf3, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec() 195 ipv4_hdr = rte_pktmbuf_mtod_offset(mbuf0, struct rte_ipv4_hdr *, in ip4_lookup_node_process_vec()
|
| H A D | ip4_rewrite.c | 45 struct rte_ipv4_hdr *ip0, *ip1, *ip2, *ip3; in ip4_rewrite_node_process() 102 ip0 = (struct rte_ipv4_hdr *)((uint8_t *)d0 + in ip4_rewrite_node_process() 113 ip1 = (struct rte_ipv4_hdr *)((uint8_t *)d1 + in ip4_rewrite_node_process() 123 ip2 = (struct rte_ipv4_hdr *)((uint8_t *)d2 + in ip4_rewrite_node_process() 134 ip3 = (struct rte_ipv4_hdr *)((uint8_t *)d3 + in ip4_rewrite_node_process() 224 ip0 = (struct rte_ipv4_hdr *)((uint8_t *)d0 + in ip4_rewrite_node_process()
|
| /f-stack/dpdk/app/test-pipeline/ |
| H A D | pipeline_acl.c | 43 offsetof(struct rte_ipv4_hdr, next_proto_id), 51 offsetof(struct rte_ipv4_hdr, src_addr), 59 offsetof(struct rte_ipv4_hdr, dst_addr), 67 sizeof(struct rte_ipv4_hdr), 75 sizeof(struct rte_ipv4_hdr) + sizeof(uint16_t),
|
| /f-stack/dpdk/drivers/net/sfc/ |
| H A D | sfc_tso.h | 32 const struct rte_ipv4_hdr *ip_hdrp; in sfc_tso_ip4_get_ipid() 35 ip_hdrp = (const struct rte_ipv4_hdr *)(pkt_hdrp + ip_hdr_off); in sfc_tso_ip4_get_ipid()
|
| /f-stack/dpdk/examples/ipsec-secgw/ |
| H A D | sad.h | 29 cmp_sa_key(struct ipsec_sa *sa, int is_v4, struct rte_ipv4_hdr *ipv4, in cmp_sa_key() 67 struct rte_ipv4_hdr *ipv4; in sad_lookup() 86 ipv4 = rte_pktmbuf_mtod(pkts[i], struct rte_ipv4_hdr *); in sad_lookup() 143 struct rte_ipv4_hdr *); in sad_lookup()
|
| /f-stack/dpdk/lib/librte_net/ |
| H A D | rte_ip.h | 33 struct rte_ipv4_hdr { struct 115 rte_ipv4_hdr_len(const struct rte_ipv4_hdr *ipv4_hdr) in rte_ipv4_hdr_len() 287 rte_ipv4_cksum(const struct rte_ipv4_hdr *ipv4_hdr) in rte_ipv4_cksum() 313 rte_ipv4_phdr_cksum(const struct rte_ipv4_hdr *ipv4_hdr, uint64_t ol_flags) in rte_ipv4_phdr_cksum() 353 rte_ipv4_udptcp_cksum(const struct rte_ipv4_hdr *ipv4_hdr, const void *l4_hdr) in rte_ipv4_udptcp_cksum()
|