diff options
author | Daniel Turull <daniel.turull@gmail.com> | 2010-06-10 00:49:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-12 03:37:09 +0200 |
commit | 43d28b6515a6ea580a198df3e253e88236f08978 (patch) | |
tree | 97419dbd96cfb236694de00397a619cf5a0bab05 /Documentation/networking/pktgen.txt | |
parent | econet: fix locking (diff) | |
download | linux-43d28b6515a6ea580a198df3e253e88236f08978.tar.xz linux-43d28b6515a6ea580a198df3e253e88236f08978.zip |
pktgen: increasing transmission granularity
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>
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/pktgen.txt')
-rw-r--r-- | Documentation/networking/pktgen.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/networking/pktgen.txt b/Documentation/networking/pktgen.txt index 61bb645d50e0..75e4fd708ccb 100644 --- a/Documentation/networking/pktgen.txt +++ b/Documentation/networking/pktgen.txt @@ -151,6 +151,8 @@ Examples: pgset stop aborts injection. Also, ^C aborts generator. + pgset "rate 300M" set rate to 300 Mb/s + pgset "ratep 1000000" set rate to 1Mpps Example scripts =============== @@ -241,6 +243,9 @@ src6 flows flowlen +rate +ratep + References: ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/ ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/examples/ |