From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <zhihong.wang@intel.com> Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 377D62BBA for <dev@dpdk.org>; Thu, 26 May 2016 11:24:39 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 26 May 2016 02:24:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,367,1459839600"; d="scan'208";a="974878590" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga001.fm.intel.com with ESMTP; 26 May 2016 02:24:38 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 May 2016 02:24:37 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 May 2016 02:24:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.58]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0248.002; Thu, 26 May 2016 17:24:35 +0800 From: "Wang, Zhihong" <zhihong.wang@intel.com> To: Thomas Monjalon <thomas.monjalon@6wind.com> CC: "dev@dpdk.org" <dev@dpdk.org>, "Ananyev, Konstantin" <konstantin.ananyev@intel.com>, "Richardson, Bruce" <bruce.richardson@intel.com>, "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com> Thread-Topic: [PATCH 1/6] testpmd: add io_retry forwarding Thread-Index: AQHRp1t5bWZZqQmXmEy1banZ795YMJ/I+8+AgAGjAUD//7ukgIAAtoqA Date: Thu, 26 May 2016 09:24:35 +0000 Message-ID: <8F6C2BD409508844A0EFC19955BE09411074397E@SHSMSX103.ccr.corp.intel.com> References: <1462488421-118990-1-git-send-email-zhihong.wang@intel.com> <2292380.hL3i5NyNHm@xps13> <8F6C2BD409508844A0EFC19955BE09411074370A@SHSMSX103.ccr.corp.intel.com> <3258601.6MDWRLAuTr@xps13> In-Reply-To: <3258601.6MDWRLAuTr@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDY2ZDBiNTctODhiNi00ZTk0LTk4MDYtNWVjZGUyNGRkYTYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJWaUdUSGcrdFhmbjd5Y2VCVHhHb0hoTGFTcGhBS1JtamMxXC95WHRUY3NFPSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/6] testpmd: add io_retry forwarding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Thu, 26 May 2016 09:24:40 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Thursday, May 26, 2016 2:27 PM > To: Wang, Zhihong <zhihong.wang@intel.com> > Cc: dev@dpdk.org; Ananyev, Konstantin <konstantin.ananyev@intel.com>; > Richardson, Bruce <bruce.richardson@intel.com>; De Lara Guarch, Pablo > <pablo.de.lara.guarch@intel.com> > Subject: Re: [PATCH 1/6] testpmd: add io_retry forwarding >=20 > 2016-05-26 02:40, Wang, Zhihong: > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > > 2016-05-05 18:46, Zhihong Wang: > > > > --- a/app/test-pmd/testpmd.h > > > > +++ b/app/test-pmd/testpmd.h > > > > extern struct fwd_engine io_fwd_engine; > > > > +extern struct fwd_engine io_retry_fwd_engine; > > > > extern struct fwd_engine mac_fwd_engine; > > > > extern struct fwd_engine mac_retry_fwd_engine; > > > > extern struct fwd_engine mac_swap_engine; > > > > > > We now have 2 engines with "retry" behaviour. > > > It is maybe the way to go, but I want to ask the question: > > > Would it be possible to have "retry" as an engine parameter? > > > > > > > If it's just about the way to write commands there isn't much differenc= e, > > like "set fwd io_rety" and "set fwd io retry". > > > > Do you mean to add the "retry" for all engines, and also implement this > > as a parameter in each original engine? So for example, no iofwd-retry.= c, > > just add this feature inside iofwd.c? >=20 > Yes, if it makes sense. For engines other than io_fwd and mac_fwd, the re= try > option can be unsupported (return an error) as a first step. I think it makes sense in terms of making code more clear and manageable.