Home
last modified time | relevance | path

Searched hist:"33136 d12be00596a8320d4fe88f95c44f67afbdb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dpktgen.cdiff 33136d12be00596a8320d4fe88f95c44f67afbdb Thu Oct 20 16:00:21 CDT 2011 Eric Dumazet <eric.dumazet@gmail.com> 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 <daniel.turull@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>