From: Ferruh Yigit Subject: Re: [PATCH 1/2] testpmd: add parameters buffersize-before-send and flush-timeout Date: Thu, 12 Apr 2018 17:30:54 +0100 Message-ID: <22853253-69d9-b064-ef29-66ca19fb7846@intel.com> References: <20180412143422.31739-1-jfreimann@redhat.com> <20180412143422.31739-2-jfreimann@redhat.com> <2601191342CEEE43887BDE71AB977258AE914601@IRSMSX102.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "ailan@redhat.com" , "jan.scheurich@ericsson.com" , "vkaplans@redhat.com" , "Richardson, Bruce" , "thomas@monjalon.net" , "maxime.coquelin@redhat.com" To: "Ananyev, Konstantin" , Jens Freimann , "dev@dpdk.org" Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3C42E1C0E8 for ; Thu, 12 Apr 2018 18:30:57 +0200 (CEST) In-Reply-To: <2601191342CEEE43887BDE71AB977258AE914601@IRSMSX102.ger.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/12/2018 3:57 PM, Ananyev, Konstantin wrote: > Hi, > >> >> Create a fifo to buffer received packets. Once it flows over put >> those packets into the actual tx queue. The fifo is created per tx >> queue and its size can be set with the --buffersize-before-sending >> commandline parameter. >> >> A second commandline parameter is used to set a timeout in >> milliseconds after which the fifo is flushed. >> >> --buffersize-before-sending [packet numbers] >> Keep the mbuf in a FIFO and forward the over flooding packets from the >> FIFO. This queue is per TX-queue (after all other packet processing). >> >> --flush-timer [delay] >> Flush the packet queue if no packets have been seen during >> [delay]. As long as packets are seen, the timer is reset. >> > > I understand your desire to have some realistic fwd scenario, > but why it all have to be put in iowfd mode? > iowfd is the simplest one, mainly used to test raw PMD pefomance > in nearly ideal conditions. > Why not to create your own forwarding mode (as most people do)? > That way you'll have your 'real world app' test scenario, > while keeping iofwd code small and simple. +1 to having own forwarding mode for noisy neighbor, and leaving iofwd simple. > Konstantin > >> Signed-off-by: Jens Freimann <...>