]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pasemi_mac: Clean TX ring in poll
authorOlof Johansson <olof@lixom.net>
Sat, 15 Sep 2007 20:53:19 +0000 (13:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:51:00 +0000 (16:51 -0700)
commit829185e97fba67ededd3eb025147bafcc0ca7557
tree88160c1d7b0afeaade6c79904501a629aa9d3a6c
parent6fba848a9a4bbe03f61b22bf0e4063d7ed4c561a
pasemi_mac: Clean TX ring in poll

Unfortunately there's no timeout for how long a packet can sit on
the TX ring after completion before an interrupt is generated, and
we want to have a threshold that's larger than one packet per interrupt.

So we have to have a timer that occasionally cleans the TX ring even
though there hasn't been an interrupt. Instead of setting up a dedicated
timer for this, just clean it in the NAPI poll routine instead.

[ Resolved conflicts with napi_struct changes... -DaveM ]

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pasemi_mac.c