X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-pmd%2Fmacswap.c;h=36d38572869b07105aacbac9b9305af2a1e73cbd;hb=73b3bedc2053ad5c4040715ec9eefc63aa1ae2cd;hp=a8384d5b81bb0af774d7a77546bfd98cdd547fbd;hpb=23520b3a5c8d7538eb3f62993c8012573fcb289d;p=dpdk.git diff --git a/app/test-pmd/macswap.c b/app/test-pmd/macswap.c index a8384d5b81..36d3857286 100644 --- a/app/test-pmd/macswap.c +++ b/app/test-pmd/macswap.c @@ -77,8 +77,8 @@ pkt_burst_mac_swap(struct fwd_stream *fs) struct rte_mbuf *pkts_burst[MAX_PKT_BURST]; struct rte_port *txp; struct rte_mbuf *mb; - struct ether_hdr *eth_hdr; - struct ether_addr addr; + struct rte_ether_hdr *eth_hdr; + struct rte_ether_addr addr; uint16_t nb_rx; uint16_t nb_tx; uint16_t i; @@ -120,7 +120,7 @@ pkt_burst_mac_swap(struct fwd_stream *fs) rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[i + 1], void *)); mb = pkts_burst[i]; - eth_hdr = rte_pktmbuf_mtod(mb, struct ether_hdr *); + eth_hdr = rte_pktmbuf_mtod(mb, struct rte_ether_hdr *); /* Swap dest and src mac addresses. */ ether_addr_copy(ð_hdr->d_addr, &addr); @@ -129,7 +129,7 @@ pkt_burst_mac_swap(struct fwd_stream *fs) mb->ol_flags &= IND_ATTACHED_MBUF | EXT_ATTACHED_MBUF; mb->ol_flags |= ol_flags; - mb->l2_len = sizeof(struct ether_hdr); + mb->l2_len = sizeof(struct rte_ether_hdr); mb->l3_len = sizeof(struct ipv4_hdr); mb->vlan_tci = txp->tx_vlan_id; mb->vlan_tci_outer = txp->tx_vlan_id_outer;