]> Git Repo - linux.git/commit
pktgen: remove ndelay() call
authorEric Dumazet <[email protected]>
Thu, 20 Oct 2011 21:00:21 +0000 (17:00 -0400)
committerDavid S. Miller <[email protected]>
Thu, 20 Oct 2011 21:00:21 +0000 (17:00 -0400)
commit33136d12be00596a8320d4fe88f95c44f67afbdb
treeb12e136753a269684794308df59183329ed553a8
parente9266a02b7e6542355431955075b4e688962fc0a
pktgen: remove ndelay() call

Daniel Turull reported inaccuracies in pktgen when using low packet
rates, because we call ndelay(val) with values bigger than 20000.

Instead of calling ndelay() for delays < 100us, we can instead loop
calling ktime_now() only.

Reported-by: Daniel Turull <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/pktgen.c
This page took 0.050982 seconds and 4 git commands to generate.