net: add rte prefix to ether functions
[dpdk.git] / app / test-pmd / macswap.h
index d53e5d4..0138441 100644 (file)
@@ -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);
        }