]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fe9a282cfe17cff02382a7a9d365d4d2e98771d
tree75752bd8823f98b27957d02ea95ae582ff1e6a84
parentb8b7894cc3fd28eba5320e7924bd0e43db91b346
pktgen: Fix delay handling

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>
net/core/pktgen.c