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>
This commit is contained in:
parent
896a7cf8d8
commit
9240d7154e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue