From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yerden Zhumabekov Subject: Re: random pkt generator PMD Date: Wed, 15 Jun 2016 18:54:53 +0600 Message-ID: <5761501D.9000202@sts.kz> References: <5761235C.2090906@sts.kz> <3EB4FA525960D640B5BDFFD6A3D8912647A063F9@IRSMSX108.ger.corp.intel.com> <576137B6.2000103@sts.kz> <576146AA.2030108@sts.kz> <9dee2a6e-7aae-fbfa-18ab-16fce71a3144@redhat.com> <3EB4FA525960D640B5BDFFD6A3D8912647A065C2@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Dumitrescu, Cristian" , Panu Matilainen , "dev@dpdk.org" Return-path: Received: from mgw.gov.kz (mgw.gov.kz [89.218.88.242]) by dpdk.org (Postfix) with ESMTP id 3A9E6C65C for ; Wed, 15 Jun 2016 14:54:55 +0200 (CEST) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912647A065C2@IRSMSX108.ger.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" On 15.06.2016 18:25, Dumitrescu, Cristian wrote: >>>> So add a loop-mode to pcap pmd? >>> It would be nice to have an option like "...,rewind=1,...". >> As Cristian points out in >> http://dpdk.org/ml/archives/dev/2016-June/041589.html, the current pmd >> behavior of stopping is the odd man out in the pmd crowd. >> >> Rather than whether to rewind or not, I'd make the number of loops >> configurable, defaulting to forever and 1 being the equal to current >> behavior. >> >> - Panu - > +1 I'm afraid, all packets from pcap file would need to be preloaded to memory. Otherwise, each loop would infer pcap_open/pcap_close(), am I wrong?