Netdev List
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: "Lynch, Jonathan" <jonathan.lynch@thenowfactory.com>
Cc: netdev@vger.kernel.org
Subject: Re: Fwd: pktgen with vlan packets
Date: Fri, 20 May 2011 18:43:17 +0200	[thread overview]
Message-ID: <1305909797.3173.35.camel@edumazet-laptop> (raw)
In-Reply-To: <BANLkTinTEM4BLzoOQiDFyY13Yj=ZqhXu5w@mail.gmail.com>

Le vendredi 20 mai 2011 à 17:30 +0100, Lynch, Jonathan a écrit :
> Hi Eric,
> 
> Thanks for your quick response.
> 
> I tried your suggestion for number 1 and I got the following oops -
> see log2 attached
>  - i ran  tc qdisc before testing to confirm there is no qdisc for eth4.
> 
> Then I tried suggestion 2, it works and sends packets over multiple
> VLAN interfaces using multiple threads.
>  (When I combine suggestion 1 and 2 it crashes when I try sending to
> more than 1 VLAN interface)

Well, yes, I guess there is nothing we can do about the crash issue,
since pktgen is doing some hacks and we are not going to add additional
tests in xmit fast path.

pktgen should directly work with the lowerdev.
[ going through vlan stack is an addtional overhead anyway ]

To send packets to several vlans, you would need to add a pktgen patch.
[to accept a range of vlan_id, or a list of vlan_id]

Or just use "flag VID_RND" ? (It'll chose a random id in [0..4095])



      reply	other threads:[~2011-05-20 16:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BANLkTinybQHjqXe-0SOU4wHTJg0M=QX=ow@mail.gmail.com>
2011-05-20 15:03 ` Fwd: pktgen with vlan packets Lynch, Jonathan
2011-05-20 15:20   ` Eric Dumazet
2011-05-20 16:30     ` Lynch, Jonathan
2011-05-20 16:43       ` Eric Dumazet [this message]

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=1305909797.3173.35.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=jonathan.lynch@thenowfactory.com \
    --cc=netdev@vger.kernel.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