| /f-stack/dpdk/app/test-pmd/ |
| H A D | macswap_sse.h | 39 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 4], void *)); in do_macswap() 40 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 5], void *)); in do_macswap() 41 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 6], void *)); in do_macswap() 42 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 7], void *)); in do_macswap() 46 eth_hdr[0] = rte_pktmbuf_mtod(mb[0], struct rte_ether_hdr *); in do_macswap() 50 eth_hdr[1] = rte_pktmbuf_mtod(mb[1], struct rte_ether_hdr *); in do_macswap() 55 eth_hdr[2] = rte_pktmbuf_mtod(mb[2], struct rte_ether_hdr *); in do_macswap() 59 eth_hdr[3] = rte_pktmbuf_mtod(mb[3], struct rte_ether_hdr *); in do_macswap() 81 rte_prefetch0(rte_pktmbuf_mtod(pkts[i+1], void *)); in do_macswap() 83 eth_hdr[0] = rte_pktmbuf_mtod(mb[0], struct rte_ether_hdr *); in do_macswap()
|
| H A D | macswap_neon.h | 42 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 4], void *)); in do_macswap() 43 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 5], void *)); in do_macswap() 44 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 6], void *)); in do_macswap() 45 rte_prefetch0(rte_pktmbuf_mtod(pkts[i + 7], void *)); in do_macswap() 49 eth_hdr[0] = rte_pktmbuf_mtod(mb[0], struct rte_ether_hdr *); in do_macswap() 52 eth_hdr[1] = rte_pktmbuf_mtod(mb[1], struct rte_ether_hdr *); in do_macswap() 55 eth_hdr[2] = rte_pktmbuf_mtod(mb[2], struct rte_ether_hdr *); in do_macswap() 58 eth_hdr[3] = rte_pktmbuf_mtod(mb[3], struct rte_ether_hdr *); in do_macswap() 84 rte_prefetch0(rte_pktmbuf_mtod(pkts[i+1], void *)); in do_macswap() 86 eth_hdr[0] = rte_pktmbuf_mtod(mb[0], struct rte_ether_hdr *); in do_macswap()
|
| H A D | macswap.h | 26 rte_prefetch0(rte_pktmbuf_mtod(pkts[i+1], void *)); in do_macswap() 29 eth_hdr = rte_pktmbuf_mtod(mb, struct rte_ether_hdr *); in do_macswap()
|
| /f-stack/dpdk/devtools/cocci/ |
| H A D | mtod-offset.cocci | 9 - rte_pktmbuf_mtod(M, char *) + O 12 - rte_pktmbuf_mtod(M, char *) - O 15 - rte_pktmbuf_mtod(M, unsigned char *) + O 18 - rte_pktmbuf_mtod(M, unsigned char *) - O 21 - rte_pktmbuf_mtod(M, uint8_t *) + O 24 - rte_pktmbuf_mtod(M, uint8_t *) - O 71 - (C)rte_pktmbuf_mtod(M, T) 72 + rte_pktmbuf_mtod(M, C) 74 - (rte_pktmbuf_mtod(M, T)) 75 + rte_pktmbuf_mtod(M, T)
|
| /f-stack/dpdk/examples/l3fwd/ |
| H A D | l3fwd_lpm_neon.h | 25 eth_hdr = rte_pktmbuf_mtod(pkt[0], struct rte_ether_hdr *); in processx4_step1() 30 eth_hdr = rte_pktmbuf_mtod(pkt[1], struct rte_ether_hdr *); in processx4_step1() 35 eth_hdr = rte_pktmbuf_mtod(pkt[2], struct rte_ether_hdr *); in processx4_step1() 40 eth_hdr = rte_pktmbuf_mtod(pkt[3], struct rte_ether_hdr *); in processx4_step1() 100 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[i], in l3fwd_lpm_send_packets() 106 rte_prefetch0(rte_pktmbuf_mtod( in l3fwd_lpm_send_packets() 127 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[j], in l3fwd_lpm_send_packets() 132 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[j], in l3fwd_lpm_send_packets() 137 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[j], in l3fwd_lpm_send_packets()
|
| H A D | l3fwd_em.h | 85 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in l3fwd_em_simple_forward() 108 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in l3fwd_em_simple_process() 132 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[j], void *)); in l3fwd_em_no_opt_send_packets() 139 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[ in l3fwd_em_no_opt_send_packets() 161 rte_prefetch0(rte_pktmbuf_mtod(events[j]->mbuf, void *)); in l3fwd_em_no_opt_process_events() 168 rte_prefetch0(rte_pktmbuf_mtod(events[ in l3fwd_em_no_opt_process_events()
|
| H A D | l3fwd_em_sequential.h | 83 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[0], in l3fwd_em_send_packets() 89 rte_prefetch0(rte_pktmbuf_mtod( in l3fwd_em_send_packets() 109 rte_prefetch0(rte_pktmbuf_mtod(events[0]->mbuf, in l3fwd_em_process_events() 116 rte_prefetch0(rte_pktmbuf_mtod( in l3fwd_em_process_events()
|
| H A D | l3fwd_lpm_sse.h | 22 eth_hdr = rte_pktmbuf_mtod(pkt[0], struct rte_ether_hdr *); in processx4_step1() 27 eth_hdr = rte_pktmbuf_mtod(pkt[1], struct rte_ether_hdr *); in processx4_step1() 32 eth_hdr = rte_pktmbuf_mtod(pkt[2], struct rte_ether_hdr *); in processx4_step1() 37 eth_hdr = rte_pktmbuf_mtod(pkt[3], struct rte_ether_hdr *); in processx4_step1()
|
| H A D | l3fwd_altivec.h | 24 p[0] = rte_pktmbuf_mtod(pkt[0], vector unsigned int *); in processx4_step3() 25 p[1] = rte_pktmbuf_mtod(pkt[1], vector unsigned int *); in processx4_step3() 26 p[2] = rte_pktmbuf_mtod(pkt[2], vector unsigned int *); in processx4_step3() 27 p[3] = rte_pktmbuf_mtod(pkt[3], vector unsigned int *); in processx4_step3() 131 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in process_packet()
|
| H A D | l3fwd_sse.h | 23 p[0] = rte_pktmbuf_mtod(pkt[0], __m128i *); in processx4_step3() 24 p[1] = rte_pktmbuf_mtod(pkt[1], __m128i *); in processx4_step3() 25 p[2] = rte_pktmbuf_mtod(pkt[2], __m128i *); in processx4_step3() 26 p[3] = rte_pktmbuf_mtod(pkt[3], __m128i *); in processx4_step3() 111 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in process_packet()
|
| H A D | l3fwd_lpm_altivec.h | 24 eth_hdr = rte_pktmbuf_mtod(pkt[0], struct rte_ether_hdr *); in processx4_step1() 30 eth_hdr = rte_pktmbuf_mtod(pkt[1], struct rte_ether_hdr *); in processx4_step1() 36 eth_hdr = rte_pktmbuf_mtod(pkt[2], struct rte_ether_hdr *); in processx4_step1() 42 eth_hdr = rte_pktmbuf_mtod(pkt[3], struct rte_ether_hdr *); in processx4_step1()
|
| H A D | l3fwd_lpm.h | 16 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in l3fwd_lpm_simple_forward() 86 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[j], void *)); in l3fwd_lpm_no_opt_send_packets() 90 rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[ in l3fwd_lpm_no_opt_send_packets()
|
| H A D | l3fwd_neon.h | 23 p[0] = rte_pktmbuf_mtod(pkt[0], uint32_t *); in processx4_step3() 24 p[1] = rte_pktmbuf_mtod(pkt[1], uint32_t *); in processx4_step3() 25 p[2] = rte_pktmbuf_mtod(pkt[2], uint32_t *); in processx4_step3() 26 p[3] = rte_pktmbuf_mtod(pkt[3], uint32_t *); in processx4_step3() 114 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in process_packet()
|
| H A D | l3fwd_lpm.c | 115 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in lpm_get_dst_port() 122 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in lpm_get_dst_port() 152 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in lpm_get_dst_port_with_ipv4() 267 struct rte_ether_hdr *eth_hdr = rte_pktmbuf_mtod(mbuf, in lpm_process_event_pkt() 589 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in lpm_parse_ptype() 609 rte_prefetch0(rte_pktmbuf_mtod(pkts[0], struct ether_hdr *)); in lpm_cb_parse_ptype() 611 rte_prefetch0(rte_pktmbuf_mtod(pkts[i+1], in lpm_cb_parse_ptype()
|
| /f-stack/dpdk/lib/librte_node/ |
| H A D | ethdev_rx.c | 93 rte_pktmbuf_mtod(pkts[4], struct rte_ether_hdr *)); in eth_pkt_parse_cb() 95 rte_pktmbuf_mtod(pkts[5], struct rte_ether_hdr *)); in eth_pkt_parse_cb() 97 rte_pktmbuf_mtod(pkts[6], struct rte_ether_hdr *)); in eth_pkt_parse_cb() 99 rte_pktmbuf_mtod(pkts[7], struct rte_ether_hdr *)); in eth_pkt_parse_cb() 109 eth_hdr = rte_pktmbuf_mtod(mbuf0, struct rte_ether_hdr *); in eth_pkt_parse_cb() 114 eth_hdr = rte_pktmbuf_mtod(mbuf1, struct rte_ether_hdr *); in eth_pkt_parse_cb() 119 eth_hdr = rte_pktmbuf_mtod(mbuf2, struct rte_ether_hdr *); in eth_pkt_parse_cb() 124 eth_hdr = rte_pktmbuf_mtod(mbuf3, struct rte_ether_hdr *); in eth_pkt_parse_cb() 136 eth_hdr = rte_pktmbuf_mtod(mbuf0, struct rte_ether_hdr *); in eth_pkt_parse_cb()
|
| H A D | ip4_rewrite.c | 97 d0 = rte_pktmbuf_mtod(mbuf0, void *); in ip4_rewrite_node_process() 108 d1 = rte_pktmbuf_mtod(mbuf1, void *); in ip4_rewrite_node_process() 119 d2 = rte_pktmbuf_mtod(mbuf2, void *); in ip4_rewrite_node_process() 129 d3 = rte_pktmbuf_mtod(mbuf3, void *); in ip4_rewrite_node_process() 219 d0 = rte_pktmbuf_mtod(mbuf0, void *); in ip4_rewrite_node_process()
|
| /f-stack/dpdk/lib/librte_gso/ |
| H A D | gso_common.h | 51 udp_hdr = (struct rte_udp_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in update_udp_header() 76 tcp_hdr = (struct rte_tcp_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in update_tcp_header() 103 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in update_ipv4_header()
|
| H A D | gso_tunnel_tcp4.c | 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() 68 inner_ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in gso_tunnel_tcp4_segment()
|
| H A D | gso_tcp4.c | 19 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char*) + in update_ipv4_tcp_headers() 49 ipv4_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(pkt, char *) + in gso_tcp4_segment()
|
| /f-stack/dpdk/drivers/raw/ioat/ |
| H A D | ioat_rawdev_test.c | 53 src_data = rte_pktmbuf_mtod(src, char *); in test_enqueue_copies() 54 dst_data = rte_pktmbuf_mtod(dst, char *); in test_enqueue_copies() 105 src_data = rte_pktmbuf_mtod(srcs[i], char *); in test_enqueue_copies() 141 src_data = rte_pktmbuf_mtod(srcs[i], char *); in test_enqueue_copies() 142 dst_data = rte_pktmbuf_mtod(dsts[i], char *); in test_enqueue_copies() 163 char *dst_data = rte_pktmbuf_mtod(dst, char *); in test_enqueue_fill()
|
| /f-stack/dpdk/examples/ipsec-secgw/ |
| H A D | sad.h | 86 ipv4 = rte_pktmbuf_mtod(pkts[i], struct rte_ipv4_hdr *); in sad_lookup() 87 ipv6 = rte_pktmbuf_mtod(pkts[i], struct rte_ipv6_hdr *); in sad_lookup() 142 ipv4 = rte_pktmbuf_mtod(pkts[v4_idxes[i]], in sad_lookup() 153 ipv6 = rte_pktmbuf_mtod(pkts[v6_idxes[i]], in sad_lookup()
|
| /f-stack/dpdk/examples/ptpclient/ |
| H A D | ptpclient.c | 352 ptp_hdr = (struct ptp_header *)(rte_pktmbuf_mtod(ptp_data->m, char *) in parse_sync() 393 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in parse_fup() 394 ptp_hdr = (struct ptp_header *)(rte_pktmbuf_mtod(m, char *) in parse_fup() 402 ptp_msg = (struct ptp_message *) (rte_pktmbuf_mtod(m, char *) + in parse_fup() 425 eth_hdr = rte_pktmbuf_mtod(created_pkt, struct rte_ether_hdr *); in parse_fup() 433 (rte_pktmbuf_mtod(created_pkt, char *) + in parse_fup() 529 ptp_msg = (struct ptp_message *) (rte_pktmbuf_mtod(m, char *) + in parse_drsp() 569 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in parse_ptp_frames() 575 ptp_hdr = (struct ptp_header *)(rte_pktmbuf_mtod(m, char *) in parse_ptp_frames()
|
| /f-stack/dpdk/lib/librte_port/ |
| H A D | rte_swx_port_source_sink.c | 115 m_data = rte_pktmbuf_mtod(m, uint8_t *); in source_create() 147 m_src_data = rte_pktmbuf_mtod(m_src, uint8_t *); in source_pkt_rx() 159 m_dst_data = rte_pktmbuf_mtod(m_dst, uint8_t *); in source_pkt_rx() 301 uint8_t *m_data = rte_pktmbuf_mtod(m, uint8_t *); in sink_pkt_tx()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_mbuf.c | 339 data = rte_pktmbuf_mtod(m, unaligned_uint32_t *); in testclone_testupdate_testdetach() 448 data = rte_pktmbuf_mtod(m, unaligned_uint32_t *); in test_pktmbuf_copy() 602 data = rte_pktmbuf_mtod(m, char *); in test_attach_from_different_pool() 618 c_data = rte_pktmbuf_mtod(clone, char *); in test_attach_from_different_pool() 626 if (rte_pktmbuf_mtod(clone, char *) != data) in test_attach_from_different_pool() 647 c_data2 = rte_pktmbuf_mtod(clone2, char *); in test_attach_from_different_pool() 655 if (rte_pktmbuf_mtod(clone2, char *) != data) in test_attach_from_different_pool() 664 if (c_data != rte_pktmbuf_mtod(clone, char *)) in test_attach_from_different_pool() 670 if (c_data2 != rte_pktmbuf_mtod(clone2, char *)) in test_attach_from_different_pool() 1303 memset(rte_pktmbuf_mtod(m, uint8_t *), 0, in test_mbuf_linearize() [all …]
|
| /f-stack/dpdk/drivers/net/mlx4/ |
| H A D | mlx4_rxtx.c | 525 data_addr = rte_pktmbuf_mtod(sbuf, uintptr_t); in mlx4_tx_burst_fill_tso_dsegs() 541 data_addr = rte_pktmbuf_mtod(sbuf, uintptr_t); in mlx4_tx_burst_fill_tso_dsegs() 557 data_addr = rte_pktmbuf_mtod(sbuf, uintptr_t); in mlx4_tx_burst_fill_tso_dsegs() 573 data_addr = rte_pktmbuf_mtod(sbuf, uintptr_t); in mlx4_tx_burst_fill_tso_dsegs() 614 char *from = rte_pktmbuf_mtod(buf, char *); in mlx4_tx_burst_fill_tso_hdr() 779 dseg->addr = rte_cpu_to_be_64(rte_pktmbuf_mtod(sbuf, uintptr_t)); in mlx4_tx_burst_segs() 807 rte_pktmbuf_mtod(sbuf, uintptr_t), in mlx4_tx_burst_segs() 823 rte_pktmbuf_mtod(sbuf, uintptr_t), in mlx4_tx_burst_segs() 839 rte_pktmbuf_mtod(sbuf, uintptr_t), in mlx4_tx_burst_segs() 961 rte_pktmbuf_mtod(buf, uintptr_t), in mlx4_tx_burst() [all …]
|