From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 2AE9AC5B2 for ; Wed, 15 Jun 2016 13:40:52 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id m124so32038964wme.1 for ; Wed, 15 Jun 2016 04:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=F+2Sxswzd+XXXy+lVL5Abq+1ieENeELCt8jKRBrQrUA=; b=GdrQ9K7ovMK3bz/LYLUVdX37J4JzMNtRTTgCqCH6rQ3h8UCYq5kLrU4NVFXIzYDnAO BSToIrMnCtsYzycv/t5qA80j9tRwV5gDUPsddwx62qlGfHR58UE0XvU0WitzUQngdaaC vifzqI/M3YAEHfXTbC444Z+O3TWrHsmvUVmRkijyaTouS52FCgXNc+3S/MvnKZ5RFi4C B2DC/o++FdHTxCnOggj8qKNb17Xd7SqIo1DcxtrPrv/YTjcofW3VuipQi+9IXKmg96vq CB9PpRaq66v2oxduF1eVCCeTK/Zihvd4AjdoQXkXMRYqgTQD72x92ZWJeaa8EtuFIxhF cVwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=F+2Sxswzd+XXXy+lVL5Abq+1ieENeELCt8jKRBrQrUA=; b=jIleVWo89xxrFzhUd1d14zvM1jmffux9oFP9nLAZJ3Hm3lL1DjlswXJ4zOSaKexEtJ MjrZvCDwAdUGuheies/tLbUwrE1Y6Ck3m+saICl93RPQH3cuEbN1yAvT9qHhfO6XmrZp sdAZLmQFdtrVLOeqWODXgJ+M3hguoyA2sSeHTpIUGkTMswg/JpRvs/aZVjlBG2KJ3W/C FwfwtSVNbditEX+LlQBR5r2kyUin+5t/n9aRhO46JXp8nFOhWhkaNGy2SWCZVGLirtjV jUBlxbOH0jHw+8X7b5RCgHunQ3q/OT5Ow0qidyEQaVjkWX8sHoBX80yKbpOv3yqZn9BI Derw== X-Gm-Message-State: ALyK8tJtyF9hOlFsvSaRN16rCt1Y6sGj0cjDS/6uT3xWhB1hLLbpzeJgOFvKVyxC6oUsWi6G X-Received: by 10.28.199.205 with SMTP id x196mr10776173wmf.96.1465990851837; Wed, 15 Jun 2016 04:40:51 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id x194sm3753715wmf.13.2016.06.15.04.40.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jun 2016 04:40:51 -0700 (PDT) From: Thomas Monjalon To: Yerden Zhumabekov Cc: dev@dpdk.org, "Dumitrescu, Cristian" Date: Wed, 15 Jun 2016 13:40:50 +0200 Message-ID: <2074524.h4cbHbybRP@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <576137B6.2000103@sts.kz> References: <5761235C.2090906@sts.kz> <3EB4FA525960D640B5BDFFD6A3D8912647A063F9@IRSMSX108.ger.corp.intel.com> <576137B6.2000103@sts.kz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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:40:52 -0000 2016-06-15 17:10, Yerden Zhumabekov: > On 15.06.2016 16:43, Dumitrescu, Cristian wrote: > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yerden Zhumabekov > >> 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. This kind of specific configuration could be done with devargs.