projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896a7cf
)
pktgen: restore nanosec delays
author
Eric Dumazet
<eric.dumazet@gmail.com>
Sat, 3 Oct 2009 01:39:18 +0000
(
01:39
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 5 Oct 2009 04:08:58 +0000
(21:08 -0700)
Commit
fd29cf72
(pktgen: convert to use ktime_t)
inadvertantly converted "delay" parameter from nanosec to microsec.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index 421857c8c07190b7280d0ba8282068038d343910..86acdba0a97d657201349491a53b04ba198e4c98 100644
(file)
--- a/
net/core/pktgen.c
+++ b/
net/core/pktgen.c
@@
-964,7
+964,7
@@
static ssize_t pktgen_if_write(struct file *file,
if (value == 0x7FFFFFFF)
pkt_dev->delay = ULLONG_MAX;
else
- pkt_dev->delay = (u64)value
* NSEC_PER_USEC
;
+ pkt_dev->delay = (u64)value;
sprintf(pg_result, "OK: delay=%llu",
(unsigned long long) pkt_dev->delay);