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
doc: introduce networking driver matrix
[dpdk.git]
/
app
/
test-pmd
/
macfwd-retry.c
diff --git
a/app/test-pmd/macfwd-retry.c
b/app/test-pmd/macfwd-retry.c
index
f4e06c4
..
3a96b3d
100644
(file)
--- a/
app/test-pmd/macfwd-retry.c
+++ b/
app/test-pmd/macfwd-retry.c
@@
-51,7
+51,6
@@
#include <rte_memcpy.h>
#include <rte_memzone.h>
#include <rte_launch.h>
#include <rte_memcpy.h>
#include <rte_memzone.h>
#include <rte_launch.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_per_lcore.h>
#include <rte_lcore.h>
#include <rte_eal.h>
#include <rte_per_lcore.h>
#include <rte_lcore.h>
@@
-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];
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,
ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
ð_hdr->d_addr);
ether_addr_copy(&ports[fs->tx_port].eth_addr,