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

Function add_ether_hdr

dpdk/examples/bbdev_app/main.c:351–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351static inline void
352add_ether_hdr(struct rte_mbuf *pkt_src, struct rte_mbuf *pkt_dst)
353{
354 struct rte_ether_hdr *eth_from;
355 struct rte_ether_hdr *eth_to;
356
357 eth_from = rte_pktmbuf_mtod(pkt_src, struct rte_ether_hdr *);
358 eth_to = rte_pktmbuf_mtod(pkt_dst, struct rte_ether_hdr *);
359
360 /* copy header */
361 rte_memcpy(eth_to, eth_from, sizeof(struct rte_ether_hdr));
362}
363
364static inline void
365add_awgn(struct rte_mbuf **mbufs, uint16_t num_pkts)

Callers 1

run_encodingFunction · 0.85

Calls 1

rte_memcpyFunction · 0.50

Tested by

no test coverage detected