From: Kristian Larsson <kristian@spritelink.net>
To: Joe Perches <joe@perches.com>
Cc: "David S. Miller" <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: pktgen IP address stepping
Date: Thu, 16 Dec 2010 19:30:04 +0100 [thread overview]
Message-ID: <20101216183004.GC8404@spritelink.se> (raw)
In-Reply-To: <1292522532.29894.33.camel@Joe-Laptop>
On Thu, Dec 16, 2010 at 10:02:12AM -0800, Joe Perches wrote:
> On Thu, 2010-12-16 at 18:28 +0100, Kristian Larsson wrote:
> > This patch adds the ability to set the step rate at which the source
> > or destination IP address is increased when src_min / src_max or
> > dst_min / dst_max is used with pktgen.
> > Usage is simple, two new parameters:
> > src_step X
> > dst_step X
> > where X is a positive integer (or actually an unsigned long long).
> []
> > Looking forward to any feedback and / or suggestions.
>
> I suggest using actual ipv4 addresses (and ipv6 if you ever
> need it) as increment/mask.
Not sure I follow you, should the stepping be specified as
0.0.0.213 if I would like to increase with 213 or 0.0.255.255 if
I want to increase by a /16 at a time?
> For your current use, __u32 would work fine.
Yepp, I'll have a look at that once I get home :)
> trivia:
>
> pr_<foo> calls are already prefixed with pktgen via pr_fmt,
> you don't need to add it to the format string.
Same thing here, will look over it. I think I copied most of this
from some other part of pktgen.c :)
Kind regards,
Kristian.
--
Kristian Larsson KLL-RIPE
+46 704 264511 kll@spritelink.net
next prev parent reply other threads:[~2010-12-16 18:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-16 17:28 pktgen IP address stepping Kristian Larsson
2010-12-16 17:44 ` David Miller
2010-12-16 18:27 ` Kristian Larsson
2010-12-16 18:34 ` David Miller
2010-12-16 18:02 ` Joe Perches
2010-12-16 18:30 ` Kristian Larsson [this message]
2010-12-16 19:02 ` [PATCH net-next] pktgen: Remove unnecessary prefix from pr_<level> Joe Perches
2010-12-20 18:30 ` David Miller
2010-12-16 19:18 ` pktgen IP address stepping Joe Perches
2010-12-16 20:34 ` Kristian Larsson
2010-12-16 21:11 ` Kristian Larsson
2010-12-16 21:22 ` Joe Perches
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=20101216183004.GC8404@spritelink.se \
--to=kristian@spritelink.net \
--cc=davem@davemloft.net \
--cc=joe@perches.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;
as well as URLs for NNTP newsgroup(s).