From: Jens Freimann Subject: Re: [PATCH 1/2] testpmd: add parameters buffersize-before-send and flush-timeout Date: Fri, 13 Apr 2018 08:54:14 +0200 Message-ID: <20180413065414.xox6ubdvsqh6ibu6@localhost.localdomain> References: <20180412143422.31739-1-jfreimann@redhat.com> <20180412143422.31739-2-jfreimann@redhat.com> <2601191342CEEE43887BDE71AB977258AE914601@IRSMSX102.ger.corp.intel.com> <22853253-69d9-b064-ef29-66ca19fb7846@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Cc: "Ananyev, Konstantin" , "dev@dpdk.org" , "ailan@redhat.com" , "jan.scheurich@ericsson.com" , "vkaplans@redhat.com" , "Richardson, Bruce" , "thomas@monjalon.net" , "maxime.coquelin@redhat.com" To: Ferruh Yigit Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id BA6C0AACA for ; Fri, 13 Apr 2018 08:54:16 +0200 (CEST) Content-Disposition: inline In-Reply-To: <22853253-69d9-b064-ef29-66ca19fb7846@intel.com> 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 Thu, Apr 12, 2018 at 05:30:54PM +0100, Ferruh Yigit wrote: >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. I'm okay with a new forwarding mode. I'll send a v2. Thanks for the review Konstantin and Ferruh! regards, Jens