From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgw.gov.kz (mgw.gov.kz [89.218.88.242]) by dpdk.org (Postfix) with ESMTP id 4D480B44F for ; Wed, 15 Jun 2016 13:10:48 +0200 (CEST) Received: from sts.kz (mail.sts.kz [178.89.4.9]) by mgw.gov.kz with ESMTP id u5FBAllT025353-u5FBAllV025353 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 Jun 2016 17:10:47 +0600 Received: from [172.20.19.232] (unknown [178.89.4.11]) by sts.kz (Postfix) with ESMTPA id E106164CA; Wed, 15 Jun 2016 17:10:46 +0600 (ALMT) DKIM-Filter: OpenDKIM Filter v2.10.3 sts.kz E106164CA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sts.kz; s=mail; t=1465989047; bh=Y5s/713ceLUwdjWGHzq1iLbBPzGdv6uTNKrB1okC0Ug=; h=Subject:To:References:From:Date:In-Reply-To:From; b=nDKnklj28QnYl+A8+AdkNPuwCHG+6RnSkcqpU+2cidXw4emI5FFoFenQJqTB6Q5OA cbesK1+fZKXlsNrieOIUHV5LOg13uv8lPbQ88xGomQfp5c6Ab572u1QxPJiqxT/QCR w9TRST/oHNLic8lVhDI/81vbfblj6AE7p2TCnjLc= To: "Dumitrescu, Cristian" , "dev@dpdk.org" References: <5761235C.2090906@sts.kz> <3EB4FA525960D640B5BDFFD6A3D8912647A063F9@IRSMSX108.ger.corp.intel.com> From: Yerden Zhumabekov Message-ID: <576137B6.2000103@sts.kz> Date: Wed, 15 Jun 2016 17:10:46 +0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912647A063F9@IRSMSX108.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] random pkt generator PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 11:10:48 -0000 On 15.06.2016 16:43, Dumitrescu, Cristian wrote: > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yerden >> Zhumabekov >> Sent: Wednesday, June 15, 2016 10:44 AM >> To: dev@dpdk.org >> Subject: [dpdk-dev] random pkt generator PMD >> >> Hello everybody, >> >> DPDK already got a number of PMDs for various eth devices, it even has >> PMD emulations for backends such as pcap, sw rings etc. >> >> I've been thinking about the idea of having PMD which would generate >> mbufs on the fly in some randomized fashion. This would serve goals >> like, for example: >> >> 1) running tests for applications with network processing capabilities >> without additional software packet generators; >> 2) making performance measurements with no hw inteference; >> 3) ability to run without root privileges, --no-pci, --no-huge, for CI >> build, so on. >> >> Maybe there's no such need, and these goals may be achieved by other >> means and this idea is flawed? Any thoughts? > How about a Perl/Python script to generate a PCAP file with random packets and then feed the PCAP file to the PCAP PMD? > > Random can mean different requirements for different users/application, I think it is difficult to fit this under a simple generic API. Customizing the script for different requirements if a far better option in my opinion. AFAIK, the thing about pcap pmd is that one needs to rewind pcap file once pcap pmd reaches its end. It requires additional (non-generic) handling in app code.