DPDK usage discussions
 help / color / mirror / Atom feed
From: James Bensley <jwbensley@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] PktGen Ethertype
Date: Tue, 9 May 2017 09:55:59 +0100	[thread overview]
Message-ID: <CAAWx_pX_BBSoPs=B0sXvNhde0fpB23pPxM+cOdHXVPE0wTUE6g@mail.gmail.com> (raw)

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.

             reply	other threads:[~2017-05-09  8:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09  8:55 James Bensley [this message]
2017-05-09 13:56 ` Wiles, Keith
2017-05-09 14:13   ` Paul Emmerich
2017-05-10  9:12     ` James Bensley
2017-05-10  9:09   ` James Bensley
2017-05-10 13:53     ` Wiles, Keith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAWx_pX_BBSoPs=B0sXvNhde0fpB23pPxM+cOdHXVPE0wTUE6g@mail.gmail.com' \
    --to=jwbensley@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).