X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest-pmd%2Fmacfwd-retry.c;h=3a96b3df54e2ba146f08ae980940801b43d5323f;hb=e45ae7065e92ade35d6a3883a986a4210c78cc24;hp=f4e06c4693ce6791ab799aacef9dbd8ab3340d23;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/app/test-pmd/macfwd-retry.c b/app/test-pmd/macfwd-retry.c index f4e06c4693..3a96b3df54 100644 --- a/app/test-pmd/macfwd-retry.c +++ b/app/test-pmd/macfwd-retry.c @@ -51,7 +51,6 @@ #include #include #include -#include #include #include #include @@ -119,7 +118,7 @@ pkt_burst_mac_retry_forward(struct fwd_stream *fs) fs->rx_packets += nb_rx; for (i = 0; i < nb_rx; i++) { mb = pkts_burst[i]; - eth_hdr = (struct ether_hdr *) mb->pkt.data; + eth_hdr = rte_pktmbuf_mtod(mb, struct ether_hdr *); ether_addr_copy(&peer_eth_addrs[fs->peer_addr], ð_hdr->d_addr); ether_addr_copy(&ports[fs->tx_port].eth_addr,