]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mv643xx_eth: fix transmit-reclaim-in-napi-poll
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 15 Jul 2008 11:34:51 +0000 (13:34 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Thu, 24 Jul 2008 04:22:51 +0000 (06:22 +0200)
commit4dfc1c87af46f9d8abf2ef78a4e22891d7a564c3
treedd5614ebe258b8269d191a2d3a8458fe6d10734e
parent6b368f6859c80343e5d7c6e2a7c49df0a8a273c1
mv643xx_eth: fix transmit-reclaim-in-napi-poll

The mv643xx_eth driver allows doing transmit reclaim from within the
napi poll routine, but after doing reclaim, it would forget to check
the free transmit descriptor count and wake up the transmit queue if
the reclaim caused enough descriptors for a new packet to become
available.  This would cause the netdev watchdog to occasionally kick
in during certain workloads with combined receive and transmit traffic.

Fix this by adding a wakeup check identical to the one in the
interrupt handler to the napi poll routine.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
drivers/net/mv643xx_eth.c