Searched hist:ef87979c273a2348430648ad1d5c2a5e5df50b6e (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | pktgen.c | diff ef87979c273a2348430648ad1d5c2a5e5df50b6e Tue Sep 22 14:41:43 CDT 2009 Stephen Hemminger <shemminger@vyatta.com> 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>
|