]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/macswap.h
net: add rte prefix to ether functions
[dpdk.git] / app / test-pmd / macswap.h
index d53e5d482f191965fd60d0f91f0a2043ed3fe79f..0138441566789e443ac5775221f0a5022bf10975 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. */
                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);
        }
 
                mbuf_field_set(mb, ol_flags);
        }