From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/6] testpmd: add io_retry forwarding Date: Thu, 26 May 2016 08:27:13 +0200 Message-ID: <3258601.6MDWRLAuTr@xps13> References: <1462488421-118990-1-git-send-email-zhihong.wang@intel.com> <2292380.hL3i5NyNHm@xps13> <8F6C2BD409508844A0EFC19955BE09411074370A@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Ananyev, Konstantin" , "Richardson, Bruce" , "De Lara Guarch, Pablo" To: "Wang, Zhihong" Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id DE572A2F for ; Thu, 26 May 2016 08:27:14 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id s131so623772wme.0 for ; Wed, 25 May 2016 23:27:14 -0700 (PDT) In-Reply-To: <8F6C2BD409508844A0EFC19955BE09411074370A@SHSMSX103.ccr.corp.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" 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 difference, > 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? Yes, if it makes sense. For engines other than io_fwd and mac_fwd, the retry option can be unsupported (return an error) as a first step.