From: David Miller <davem@davemloft.net>
To: daniel.turull@gmail.com
Cc: netdev@vger.kernel.org, robert@herjulf.net, jens.laas@its.uu.se
Subject: Re: [PATCH 1/2] pktgen: increasing transmission granularity
Date: Wed, 09 Jun 2010 13:50:40 -0700 (PDT) [thread overview]
Message-ID: <20100609.135040.193710199.davem@davemloft.net> (raw)
In-Reply-To: <4C064533.6070709@gmail.com>
From: Daniel Turull <daniel.turull@gmail.com>
Date: Wed, 02 Jun 2010 13:49:07 +0200
> This patch increases the granularity of the rate generated by pktgen.
> The previous version of pktgen uses micro seconds (udelay) resolution when it
> was delayed causing gaps in the rates. It is changed to nanosecond (ndelay).
> Now any rate is possible.
>
> Also it allows to set, the desired rate in Mb/s or packets per second.
>
> The documentation has been updated.
>
> Signed-off-by: Daniel Turull <daniel.turull@gmail.com>
I like this, however although most of this is adding a new
feature, this part:
> @@ -2170,7 +2204,7 @@ static void spin(struct pktgen_dev *pkt_dev, ktime_t spin_until)
> end_time = ktime_now();
>
> pkt_dev->idle_acc += ktime_to_ns(ktime_sub(end_time, start_time));
> - pkt_dev->next_tx = ktime_add_ns(end_time, pkt_dev->delay);
> + pkt_dev->next_tx = ktime_add_ns(spin_until, pkt_dev->delay);
> }
>
> static inline void set_pkt_overhead(struct pktgen_dev *pkt_dev)
Is a bug fix, since it makes sure the inter-packet interval is
accurate.
Can you please submit this part seperately, so I can apply it to
net-2.6 Then you can submit the nanosecond feature parts
relative to this, which I'll apply to net-next-2.6
Thanks!
next prev parent reply other threads:[~2010-06-09 20:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 11:49 [PATCH 1/2] pktgen: increasing transmission granularity Daniel Turull
2010-06-09 20:50 ` David Miller [this message]
2010-06-10 8:44 ` Daniel Turull
2010-06-10 15:44 ` robert
2010-06-11 6:08 ` David Miller
2010-06-10 8:49 ` Daniel Turull
2010-06-10 17:21 ` Robert Olsson
2010-06-12 1:40 ` David Miller
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=20100609.135040.193710199.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=daniel.turull@gmail.com \
--cc=jens.laas@its.uu.se \
--cc=netdev@vger.kernel.org \
--cc=robert@herjulf.net \
/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).