summaryrefslogtreecommitdiff
path: root/app/test-pmd/macswap.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/test-pmd/macswap.h')
-rw-r--r--app/test-pmd/macswap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/test-pmd/macswap.h b/app/test-pmd/macswap.h
index d53e5d4..0138441 100644
--- a/app/test-pmd/macswap.h
+++ b/app/test-pmd/macswap.h
@@ -29,9 +29,9 @@ do_macswap(struct rte_mbuf *pkts[], uint16_t nb,
eth_hdr = rte_pktmbuf_mtod(mb, struct rte_ether_hdr *);
/* Swap dest and src mac addresses. */
- ether_addr_copy(&eth_hdr->d_addr, &addr);
- ether_addr_copy(&eth_hdr->s_addr, &eth_hdr->d_addr);
- ether_addr_copy(&addr, &eth_hdr->s_addr);
+ rte_ether_addr_copy(&eth_hdr->d_addr, &addr);
+ rte_ether_addr_copy(&eth_hdr->s_addr, &eth_hdr->d_addr);
+ rte_ether_addr_copy(&addr, &eth_hdr->s_addr);
mbuf_field_set(mb, ol_flags);
}