From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 9159F5954 for ; Fri, 7 Aug 2015 18:06:21 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 07 Aug 2015 09:05:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,630,1432623600"; d="scan'208";a="779778498" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by orsmga002.jf.intel.com with ESMTP; 07 Aug 2015 09:05:41 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.22]) by irsmsx105.ger.corp.intel.com ([169.254.7.223]) with mapi id 14.03.0224.002; Fri, 7 Aug 2015 17:05:11 +0100 From: "De Lara Guarch, Pablo" To: "Qiu, Michael" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding Thread-Index: AQHQ0MFg61qj4pTWR0aGuVbiPotgM54As4mw Date: Fri, 7 Aug 2015 16:05:11 +0000 Message-ID: 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: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" 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: Fri, 07 Aug 2015 16:06:22 -0000 Hi Michael, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu > Sent: Friday, August 07, 2015 4: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 DPDK will be dropped in switch side, so the packet > generator will never receive 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 Why do you make this change only in this mode? If NICs like RRC has this is= sue, I assume it would happen in other modes. Thanks, Pablo