From: Michael Qiu Date: Fri, 7 Aug 2015 03:29:16 +0000 (+0800) Subject: app/testpmd: modify mac in csum forwarding X-Git-Tag: spdx-start~8287 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=10f4620f02e1c96b13226c56b761724643b51142;p=dpdk.git 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 Acked-by: Jijiang Liu Acked-by: Pablo de Lara --- diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index e561dde50e..c9c095d4dd 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], + ð_hdr->d_addr); + ether_addr_copy(&ports[fs->tx_port].eth_addr, + ð_hdr->s_addr); parse_ethernet(eth_hdr, &info); l3_hdr = (char *)eth_hdr + info.l2_len;