]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/core/pktgen.c
pktgen: increasing transmission granularity
authorDaniel Turull <daniel.turull@gmail.com>
Wed, 9 Jun 2010 22:49:57 +0000 (22:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Jun 2010 01:37:09 +0000 (18:37 -0700)
commit43d28b6515a6ea580a198df3e253e88236f08978
tree97419dbd96cfb236694de00397a619cf5a0bab05
parent0c78a92fbd655ab990e2799f645707f05f548e2f
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>
Documentation/networking/pktgen.txt
net/core/pktgen.c