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 17:20:37 +0200	[thread overview]
Message-ID: <1305904837.3173.20.camel@edumazet-laptop> (raw)
In-Reply-To: <BANLkTinBGkApfasGywg888wDXZBYPOpQDQ@mail.gmail.com>

Le vendredi 20 mai 2011 à 16:03 +0100, Lynch, Jonathan a écrit :
> Hi,
> 
> Im running 2.6.35 kernel with an Intel 82599 NIC.
> I want to send packets using pktgen via a number of vlan interfaces (1
> physical interface) created via vconfig but I get an OOPs when I try
> and send via the vlan interface.  See attached log file for the oops.
> Im not using the pgset "vlan_id 77" params because I want to send
> packets with more than 1 VLAN tag to one interface. (If it was
> possible to send packets with different vlan tags over the one
> interface with pktgen I would use it)
> 
> my config is as follows:
>   ifconfig eth4 up
>   modprobe 8021q
>   vconfig add eth4 256
>   ifconfig eth4.256 up
> 
> My pktgen config is the exact same as
> ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/examples/pktgen.conf-1-1
> except that instead of eth1, I have eth4.256.
> 
> Any ideas as to how I can send packets with multiple VLAN tags over
> the same interface with pktgen?

I am afraid you cant yet.

About the crash, you can either :

1) delete qdisc on eth4

ifconfig eth4 txqueuelen 0
tc qdisc add dev eth0 root sfq
tc qdisc del dev eth0 root

2) use clone_skb 0 only

(Or else, same skb can be queued several time on eth4 qdisc) -> crash




  reply	other threads:[~2011-05-20 15:20 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 [this message]
2011-05-20 16:30     ` Lynch, Jonathan
2011-05-20 16:43       ` Eric Dumazet

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=1305904837.3173.20.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