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:
ae638c4
)
pktgen: Fix accuracy of inter-packet delay.
author
Daniel Turull
<
[email protected]
>
Fri, 11 Jun 2010 06:08:11 +0000
(23:08 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 11 Jun 2010 06:08:11 +0000
(23:08 -0700)
This patch correct a bug in the delay of pktgen.
It makes sure the inter-packet interval is accurate.
Signed-off-by: Daniel Turull <
[email protected]
>
Signed-off-by: Robert Olsson <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index 2ad68da418df6a6d6d4ae81db9e78d4a8f6ae981..1dacd7ba8dbb1d4c2e5e6e9f623b3806e202f0ee 100644
(file)
--- a/
net/core/pktgen.c
+++ b/
net/core/pktgen.c
@@
-2170,7
+2170,7
@@
static void spin(struct pktgen_dev *pkt_dev, ktime_t spin_until)
end_time = ktime_now();
pkt_dev->idle_acc += ktime_to_ns(ktime_sub(end_time, start_time));
- pkt_dev->next_tx = ktime_add_ns(
end_time
, pkt_dev->delay);
+ pkt_dev->next_tx = ktime_add_ns(
spin_until
, pkt_dev->delay);
}
static inline void set_pkt_overhead(struct pktgen_dev *pkt_dev)