summaryrefslogtreecommitdiff
path: root/app/test-pmd/ieee1588fwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/test-pmd/ieee1588fwd.c')
-rw-r--r--app/test-pmd/ieee1588fwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/test-pmd/ieee1588fwd.c b/app/test-pmd/ieee1588fwd.c
index c6aa3c6..2b7003b 100644
--- a/app/test-pmd/ieee1588fwd.c
+++ b/app/test-pmd/ieee1588fwd.c
@@ -178,9 +178,9 @@ ieee1588_packet_fwd(struct fwd_stream *fs)
port_ieee1588_rx_timestamp_check(fs->rx_port, timesync_index);
/* 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);
/* Forward PTP packet with hardware TX timestamp */
mb->ol_flags |= PKT_TX_IEEE1588_TMST;