Thread (15 messages) 15 messages, 6 authors, 2015-10-29

Re: [PATCH] testpmd: modify the mac of csum forwarding

From: Liu, Jijiang <hidden>
Date: 2015-08-26 06:12:55

quoted hunk ↗ jump to hunk
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
Sent: Friday, August 07, 2015 11:29 AM
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of 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 <redacted>
---
 app/test-pmd/csumonly.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
1bf3485..bf8af1d 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -550,6 +550,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;

--
1.9.3
The change will affect on the csum fwd performance.
But I also think the change is necessary, or we cannot use csumonly fwd mode in guest。

Acked-by: Jijiang Liu <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help