pktgen: better scheduler friendliness
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 22 Sep 2009 19:41:43 +0000 (19:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2009 22:38:50 +0000 (15:38 -0700)
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>

No differences found