diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-03 01:39:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-04 21:08:58 -0700 |
commit | 9240d7154e766ce6f3b615e81ed28f7562f509a5 (patch) | |
tree | d8bc456e4b38cde9e4c5a5128f37dac5f66c6f0d /net/core/pktgen.c | |
parent | 896a7cf8d846a9e86fb823be16f4f14ffeb7f074 (diff) | |
download | blackbird-op-linux-9240d7154e766ce6f3b615e81ed28f7562f509a5.tar.gz blackbird-op-linux-9240d7154e766ce6f3b615e81ed28f7562f509a5.zip |
pktgen: restore nanosec delays
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>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 421857c8c071..86acdba0a97d 100644 --- 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); |