From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9FC768D86 for ; Wed, 26 Aug 2015 08:12:55 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 25 Aug 2015 23:12:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,414,1437462000"; d="scan'208";a="548673418" Received: from pgsmsx108.gar.corp.intel.com ([10.221.44.103]) by FMSMGA003.fm.intel.com with ESMTP; 25 Aug 2015 23:12:53 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX108.gar.corp.intel.com (10.221.44.103) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 26 Aug 2015 14:12:52 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.171]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.143]) with mapi id 14.03.0224.002; Wed, 26 Aug 2015 14:12:51 +0800 From: "Liu, Jijiang" To: "Qiu, Michael" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding Thread-Index: AQHQ0MFg7dMUa8yp8E6YmZjl66FNCp4d6mPQ Date: Wed, 26 Aug 2015 06:12:50 +0000 Message-ID: <1ED644BD7E0A5F4091CF203DAFB8E4CC057D2B87@SHSMSX101.ccr.corp.intel.com> References: <1438918156-1259-1-git-send-email-michael.qiu@intel.com> In-Reply-To: <1438918156-1259-1-git-send-email-michael.qiu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2015 06:12:56 -0000 > -----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 >=20 > For some ethnet-switch like intel RRC, all the packet forwarded out by DP= DK > will be dropped in switch side, so the packet generator will never receiv= e the > packet. >=20 > Signed-off-by: Michael Qiu > --- > app/test-pmd/csumonly.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > 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 */ >=20 > eth_hdr =3D 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 =3D (char *)eth_hdr + info.l2_len; >=20 > -- > 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 mod= e in guest=1B$B!#=1B(B Acked-by: Jijiang Liu