diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-22 21:41:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-25 00:38:50 +0200 |
commit | ef87979c273a2348430648ad1d5c2a5e5df50b6e (patch) | |
tree | 944be9878e1a54d68f612374d4896d7e61820c0b /fs/pnode.c | |
parent | pktgen: T_TERMINATE flag is unused (diff) | |
download | linux-ef87979c273a2348430648ad1d5c2a5e5df50b6e.tar.xz linux-ef87979c273a2348430648ad1d5c2a5e5df50b6e.zip |
pktgen: better scheduler friendliness
Previous update did not resched in inner loop causing watchdogs.
Rewrite inner loop to:
* account for delays better with less clock calls
* more accurate timing of delay:
- only delay if packet was successfully sent
- if delay is 100ns and it takes 10ns to build packet then
account for that
* use wait_event_interruptible_timeout rather than open coding it.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions