From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id EDE751C00 for ; Wed, 10 May 2017 15:53:52 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2017 06:53:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,319,1491289200"; d="scan'208";a="259451106" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 10 May 2017 06:53:51 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 10 May 2017 06:53:51 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.235]) by fmsmsx101.amr.corp.intel.com ([169.254.1.191]) with mapi id 14.03.0319.002; Wed, 10 May 2017 06:53:50 -0700 From: "Wiles, Keith" To: James Bensley CC: "users@dpdk.org" Thread-Topic: [dpdk-users] PktGen Ethertype Thread-Index: AQHSyKIuIPObLZ7csU+T+epq1ISjxqHsfEMAgAFCE4CAAE9xgA== Date: Wed, 10 May 2017 13:53:50 +0000 Message-ID: <74FFDC7D-21AA-4DDA-B5A1-8E012298BFB5@intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.44.65] Content-Type: text/plain; charset="us-ascii" Content-ID: <9567CF55617A1443938739FE12D6F106@intel.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] PktGen Ethertype X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 13:53:53 -0000 > On May 10, 2017, at 4:09 AM, James Bensley wrote: >=20 > On 9 May 2017 at 14:56, Wiles, Keith wrote: >=20 > Hi Keith! >=20 >> The range command can allow you to adjust the type field and then send t= hose in a burst. The problem is pktgen was designed to send packets at a hi= gh rate if needed and that means setting up the packets before hand. The nu= mber of packets being able to be setup before hand is 8192. The random comm= and can adjust the ether type randomly for each packet with a performance h= it. Maybe one of these would help. >=20 > So it sounds like the range command is what I want then, if I can > systematically adjust the EtherType field (e.g. I can explicitly say > start at 0x0 and run to 0xFFFF) just with the caveat that I have to > send a burst of packet for each loop iteration? You would need to set the range between 0-8191, then another loop with 8192= -((2 * 8192) -1) and so forth in a lua script. >=20 > If that is the case I don't mind, it will still get the job done of > testing every Ethertype through a DUT. Any chance I can lower the > burst size on the CLI to 64 packets for example to speed things up? >=20 >> Also I am more then willing to take patches :-) >=20 > Sure, I didn't want to spend hours testing to find out that I can't do > what I wanted to do which is why I asked here. >=20 > Sounds like it can be done so I'll have a poke around with the code > and see what I can do. >=20 > Thanks for your help it is greatly appreciated, > James. Regards, Keith