summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMichael Qiu <michael.qiu@intel.com>2015-08-07 11:29:16 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-10-29 23:52:24 +0100
commit10f4620f02e1c96b13226c56b761724643b51142 (patch)
treeccd76544a284f816d8d7707035bfba3dad89ed39 /app
parent6bbf8c8f4de624a2252f3f1bd18c582527d8674b (diff)
downloaddpdk-10f4620f02e1c96b13226c56b761724643b51142.zip
dpdk-10f4620f02e1c96b13226c56b761724643b51142.tar.gz
dpdk-10f4620f02e1c96b13226c56b761724643b51142.tar.xz
app/testpmd: modify mac in csum forwarding
For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK will be dropped in switch side, so the packet generator will never receive the packet. Signed-off-by: Michael Qiu <michael.qiu@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/csumonly.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index e561dde..c9c095d 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -540,6 +540,10 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
* and inner headers */
eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
+ ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
+ &eth_hdr->d_addr);
+ ether_addr_copy(&ports[fs->tx_port].eth_addr,
+ &eth_hdr->s_addr);
parse_ethernet(eth_hdr, &info);
l3_hdr = (char *)eth_hdr + info.l2_len;