]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9755bd34622685d6c448908eb9688491c87221b3
tree97419dbd96cfb236694de00397a619cf5a0bab05
parent8723db375a19fb05dfcbd3ce35b0e900fea0107b
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