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

Function pktmbuf_metadata_copy

dpdk/examples/dma/dmafwd.c:301–308  ·  view source on GitHub ↗

Perform packet copy there is a user-defined function. 8< */

Source from the content-addressed store, hash-verified

299
300/* Perform packet copy there is a user-defined function. 8< */
301static inline void
302pktmbuf_metadata_copy(const struct rte_mbuf *src, struct rte_mbuf *dst)
303{
304 dst->data_off = src->data_off;
305 memcpy(&dst->rx_descriptor_fields1, &src->rx_descriptor_fields1,
306 offsetof(struct rte_mbuf, buf_len) -
307 offsetof(struct rte_mbuf, rx_descriptor_fields1));
308}
309
310/* Copy packet data */
311static inline void

Callers 1

dma_rx_portFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected