From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 55B54C4F6 for ; Wed, 15 Jun 2016 12:07:08 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 15 Jun 2016 03:07:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,475,1459839600"; d="scan'208";a="976085325" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.81]) by orsmga001.jf.intel.com with SMTP; 15 Jun 2016 03:07:02 -0700 Received: by (sSMTP sendmail emulation); Wed, 15 Jun 2016 11:07:01 +0025 Date: Wed, 15 Jun 2016 11:07:01 +0100 From: Bruce Richardson To: Yerden Zhumabekov Cc: dev@dpdk.org Message-ID: <20160615100701.GC10172@bricha3-MOBL3> References: <5761235C.2090906@sts.kz> <20160615094922.GB10172@bricha3-MOBL3> <5761280F.6020106@sts.kz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5761280F.6020106@sts.kz> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) 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 10:07:08 -0000 On Wed, Jun 15, 2016 at 04:03:59PM +0600, Yerden Zhumabekov wrote: > On 15.06.2016 15:49, Bruce Richardson wrote: > >On Wed, Jun 15, 2016 at 03:43:56PM +0600, Yerden Zhumabekov wrote: > >>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? > >Isn't some of this already covered by the NULL PMD? Perhaps it could be extended > >or enhanced to meet some more of your requirements? > > > >/Bruce > Right, but development of various features regarding L3/L4 etc requires more > subtle approach, like live packets, different protocol versions, fields > manipulation. In this case some packet mangling/randomizing capabilities > would be quite useful. Something similar to what is done in Pktgen, but more > lightweight approach, in a same app. > > I've almost made my mind :) so the next question: is there any guide on PMD > dev? I'm looking through rte_ether.h right now, but some doc would be very > nice. Unfortunately not. My suggestion is to take one of the simple vdev's e.g. ring, pcap, null, and work off a copy of it. /Bruce