pktgen: xmit logic reorganization
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 27 Aug 2009 13:55:11 +0000 (13:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2009 06:31:55 +0000 (23:31 -0700)
commit3791decb5aa0202d2a2473d6cf4947d98e846c7a
tree43fa8ce25c787bf31b9d37545f6f840bbc8f1670
parent3bda06a3d7987bfeabb218ac2f17ce22c34f13b3
pktgen: xmit logic reorganization

Do some reorganization of transmit logic path:
   * move transmit queue full idle to separate routine
   * add a cpu_relax()
   * eliminate some of the uneeded goto's
   * if queue is still stopped, go back to main thread loop.
   * don't give up transmitting if quantum is exhausted (be greedy)

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c