From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com [209.85.216.179]) by dpdk.org (Postfix) with ESMTP id 313CF4A63 for ; Tue, 9 May 2017 10:56:31 +0200 (CEST) Received: by mail-qt0-f179.google.com with SMTP id m91so69760104qte.3 for ; Tue, 09 May 2017 01:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pc+0jQL2jKMqQNLjsvaDaBUYEs6LC4A2/JjlvTU/yRM=; b=WnBct41AlD56TT81GuVilD/QcwGudcDUxw3TE2X0bWHdC2wLXKQL1SrGY84WsiBShU A3L/0XIF21eoTY74l77TlSCtWCrXrlNvCZRH/5+a+hxpr17KlLX2AYLoQFFQGnozh6EZ JkHmkMM8YDjm4lHS/CFSLFr3zK1g/ZPGcKBEBzTJ2u8vvkHx2dY7Sg6ax960qlGBQ4jB PgnebdZSqpysr/kc1p80AihSuj6zxD4eSIHsF56jExHAsDef7IURzSlfswMEVv9Ffm0p Lbwxoi21LPzuvyw5zGS6WngEZ11h0GzpjGkrP4SqW2/pS75ina+NWaRoqhDcfxbqIJ8G eyTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pc+0jQL2jKMqQNLjsvaDaBUYEs6LC4A2/JjlvTU/yRM=; b=GBIRlrnXe1KlgbuophLX4emOHPKdB48wxzXYSfJ7SLEelWjPcOlE97MgHtx9yn8EXS 8GMESjlBr/5qkZWpGpe/wBbMuY7/qBe0vpAg6seGiyPr8NFP4GMBSmyxPegY7f6DsiGH MsQlGf6t23ayFtfbAsWnK7bDDQ3R6OqKMOWYPmn4JipM08Xa+5jGHfbio045IRFr+wyA 2JUqcCrf4zaID2PDLMSB2VeXYbad2X3v2DY6OUgF7HAg58oHXjZhMi5mbDds9TTAWd5S /zyBNSEDzAJe7kTDpdF41H+bDhKEVvzKj0EfkalhlFCmy6PjABz9flfPgSpEnkDqBDi7 wGyA== X-Gm-Message-State: AN3rC/6sB9cmicLX3RDdAs7ZGOdrrdoV2jQQRUor1oXHc1wieEgNsPmz BAPB6HT04uT822ns906w2xEgxoYOiAsE X-Received: by 10.200.34.118 with SMTP id p51mr39068999qtp.124.1494320190269; Tue, 09 May 2017 01:56:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.108.100 with HTTP; Tue, 9 May 2017 01:55:59 -0700 (PDT) From: James Bensley Date: Tue, 9 May 2017 09:55:59 +0100 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Subject: [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: Tue, 09 May 2017 08:56:31 -0000 Hi All, I hope this is a suitable place to ask, if not please point me at somewhere more appropriate. I've been reading through the Pktgen docs (http://pktgen.readthedocs.io/en/latest/commands.html for example) and I'm trying to find out if I can set the EtherType field in the layer 2 headers to any value I like. I can't seem to find anything on this. I want to use some Lua scripts to generate traffic with every possible EtherType (from 0x0000 to 0xFFFF) and send that through a switch and test that all frames were received on the other side. Is there a function like pktgen.set_eth_type() so I can wrap it in loop? // Build an entire frame then just loop over the ethertype for each frame: build_entire_frame_with_payload(); for (i = 0; i <= 0xFFFF; i++) { pktgen.set_eth_type(i); send_frame(); } Cheers, James.