git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/crypto: refactor unit tests into one combined array
[dpdk.git]
/
app
/
test-pmd
/
macfwd.c
diff --git
a/app/test-pmd/macfwd.c
b/app/test-pmd/macfwd.c
index
7cac757
..
d2ebb11
100644
(file)
--- a/
app/test-pmd/macfwd.c
+++ b/
app/test-pmd/macfwd.c
@@
-49,7
+49,7
@@
pkt_burst_mac_forward(struct fwd_stream *fs)
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
struct rte_port *txp;
struct rte_mbuf *mb;
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
struct rte_port *txp;
struct rte_mbuf *mb;
- struct ether_hdr *eth_hdr;
+ struct
rte_
ether_hdr *eth_hdr;
uint32_t retry;
uint16_t nb_rx;
uint16_t nb_tx;
uint32_t retry;
uint16_t nb_rx;
uint16_t nb_tx;
@@
-91,15
+91,15
@@
pkt_burst_mac_forward(struct fwd_stream *fs)
rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[i + 1],
void *));
mb = pkts_burst[i];
rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[i + 1],
void *));
mb = pkts_burst[i];
- eth_hdr = rte_pktmbuf_mtod(mb, struct ether_hdr *);
- ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
+ eth_hdr = rte_pktmbuf_mtod(mb, struct
rte_
ether_hdr *);
+
rte_
ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
ð_hdr->d_addr);
ð_hdr->d_addr);
- ether_addr_copy(&ports[fs->tx_port].eth_addr,
+
rte_
ether_addr_copy(&ports[fs->tx_port].eth_addr,
ð_hdr->s_addr);
mb->ol_flags &= IND_ATTACHED_MBUF | EXT_ATTACHED_MBUF;
mb->ol_flags |= ol_flags;
ð_hdr->s_addr);
mb->ol_flags &= IND_ATTACHED_MBUF | EXT_ATTACHED_MBUF;
mb->ol_flags |= ol_flags;
- mb->l2_len = sizeof(struct ether_hdr);
- mb->l3_len = sizeof(struct ipv4_hdr);
+ mb->l2_len = sizeof(struct
rte_
ether_hdr);
+ mb->l3_len = sizeof(struct
rte_
ipv4_hdr);
mb->vlan_tci = txp->tx_vlan_id;
mb->vlan_tci_outer = txp->tx_vlan_id_outer;
}
mb->vlan_tci = txp->tx_vlan_id;
mb->vlan_tci_outer = txp->tx_vlan_id_outer;
}