From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by dpdk.org (Postfix) with ESMTP id F347F1C00 for ; Wed, 10 May 2017 11:13:19 +0200 (CEST) Received: by mail-qk0-f177.google.com with SMTP id k74so22493554qke.1 for ; Wed, 10 May 2017 02:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=BShSa4U4HYTvlfNAYTo0VjDVvNz8Jme9W52IhXZades=; b=jgBRXtRANwtXQMmM4KG2FUeqnsJMpln1MQA46giF0txZI6ImyB5XQyZRRUCU2Zm7KT RK9+X+ZQ0sT8RoklyHgUvK0oCY4jFsAsveZleef0ve7JMGOI2SbT4FA4E5MeYowbeUmi +Lx+i6rn++ktczsU09vruoyoV8PXFXPhUrugG98LKanljRr3MSN7I5nJ3npJ4ORbs85x 8yN++dcnPJaBlulCYmuOYRik9j09c+wy/iAig8V/aK/jX8NRto0bS0ucY4WHUd/wBRxS gQ9GbrBJVOKhgstem6Oz7fEsa6nRqqr2xe4YvsgmKmUel8cIdWOPeZkaoexIypJG5Oyw bDdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=BShSa4U4HYTvlfNAYTo0VjDVvNz8Jme9W52IhXZades=; b=rUmKPRiQwA9VffaEHG7XIgkAoCewtfsUP2y2L33D6InWcQpHfQungZm5MkZc0uL6KD iJKbeOBeKkEBBKrQsi1eC0TFK+c4LGveNnikskdfAkAdmdatcJQD611+OK0NMhKV6KmN B87zxWxMnRN4ufXStdTe7mM5TbVodTPFt/tnWE4LI4p8ErOxYIvmSRhXuGaOV7e1pweY PZJPQ/m19TzG6HLNH75SbYXOQfHCfsCcKKmCiyuto8XCvE1Rphwu9sow+Yuf2oQY3y+v kV8iyaRcrmg0OnyCYN9Tzra4gfIa0UJrfO+WDFfOBNWKADKz2fQfAuUj27kbkdyKCZMY WlTA== X-Gm-Message-State: AODbwcAb+VvjOguM7FBdcBy56cjYImgSvCdPhq3VRHGEL6ni41e0wpdH HnlcXTlzHVv1R3rtDwd/NSxhRJYo5g== X-Received: by 10.55.139.70 with SMTP id n67mr4793047qkd.126.1494407598713; Wed, 10 May 2017 02:13:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.108.100 with HTTP; Wed, 10 May 2017 02:12:48 -0700 (PDT) In-Reply-To: References: From: James Bensley Date: Wed, 10 May 2017 10:12:48 +0100 Message-ID: To: "users@dpdk.org" Content-Type: text/plain; charset=UTF-8 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 09:13:20 -0000 On 9 May 2017 at 15:13, Paul Emmerich wrote: Hi Paul, > https://github.com/emmericp/MoonGen > You can have a look at one of the example scripts to see packet modifications in action: > > https://github.com/emmericp/MoonGen/blob/master/examples/l3-load-latency.lua > > Basically, you can add > > pkt.eth.type = (network byte order) > or > pkt.eth:setType() (automatic byte order swap) > > In the main loop at line 92 where it currently modifies the IP addresses. > This is still fast because we dynamically build and compile the necessary structs for the protocol stack. > > You can also receive packets to find out which ethertypes are dropped (if any), an example of packet reception can be found in this example: > https://github.com/emmericp/MoonGen/blob/master/examples/quality-of-service-test.lua#L108 I've had my eye on MoonGen already and I was reading the doc's trying to work out how to do the same with MoonGen and PtkGen. I was still reading the MoonGen docs though so you've saved me some time!. That last point about checking which packets were received is critical. Thanks, I'll give this a go! Cheers, James.