| 349 | } |
| 350 | |
| 351 | static inline void |
| 352 | add_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 | |
| 364 | static inline void |
| 365 | add_awgn(struct rte_mbuf **mbufs, uint16_t num_pkts) |
no test coverage detected