From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jijiang Liu Subject: [RFC PATCH 8/8] app/testpmd: modify the mac of csum forwarding Date: Mon, 31 Aug 2015 17:41:48 +0800 Message-ID: <1441014108-3125-9-git-send-email-jijiang.liu@intel.com> References: <1441014108-3125-1-git-send-email-jijiang.liu@intel.com> To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 7684B91AA for ; Mon, 31 Aug 2015 11:42:24 +0200 (CEST) In-Reply-To: <1441014108-3125-1-git-send-email-jijiang.liu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 a VM. Signed-off-by: Jijiang Liu --- app/test-pmd/csumonly.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 1bf3485..c4ba22e 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -636,6 +636,12 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) } m->tso_segsz = info.tso_segsz; m->ol_flags = ol_flags; + + ether_addr_copy(&peer_eth_addrs[fs->peer_addr], + ð_hdr->d_addr); + + ether_addr_copy(&ports[fs->tx_port].eth_addr, + ð_hdr->s_addr); /* if verbose mode is enabled, dump debug info */ if (verbose_level > 0) { -- 1.7.7.6