MCPcopy Create free account
hub / github.com/F-Stack/f-stack / copy_buf_to_pkt

Function copy_buf_to_pkt

dpdk/app/test-pmd/txonly.c:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static inline void
94copy_buf_to_pkt(void* buf, unsigned len, struct rte_mbuf *pkt, unsigned offset)
95{
96 if (offset + len <= pkt->data_len) {
97 rte_memcpy(rte_pktmbuf_mtod_offset(pkt, char *, offset),
98 buf, (size_t) len);
99 return;
100 }
101 copy_buf_to_pkt_segs(buf, len, pkt, offset);
102}
103
104static void
105setup_pkt_udp_ip_headers(struct rte_ipv4_hdr *ip_hdr,

Callers 1

pkt_burst_prepareFunction · 0.70

Calls 1

copy_buf_to_pkt_segsFunction · 0.70

Tested by

no test coverage detected