pktgen: Fix delay handling
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 1 Oct 2009 16:29:45 +0000 (09:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2009 16:29:45 +0000 (09:29 -0700)
After last pktgen changes, delay handling is wrong.

pktgen actually sends packets at full line speed.

Fix is to update pkt_dev->next_tx even if spin() returns early,
so that next spin() calls have a chance to see a positive delay.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found