pasemi_mac: Fix TX cleaning
pasemi_mac: Fix TX cleaning This is a bit awkward. We don't have a timer-delayed interrupt on TX complete, but we have a count threshold. So set that reasonably high (32 packets), and schedule the NAPI poll when it goes off. Also bump a regular timer that will take care of rotting packets for the last 1..31 ones in case we don't trigger a TX interrupt (and there's no RX activity that would otherwise trigger the poll). The longer-term fix is to separate TX from RX NAPI and do two separate poll loops. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
David S. Miller
parent
5c15332bed
commit
61cec3bddc
@@ -34,6 +34,7 @@ struct pasemi_mac_txring {
|
||||
unsigned int next_to_clean;
|
||||
struct pasemi_mac_buffer *ring_info;
|
||||
struct pasemi_mac *mac; /* Needed in intr handler */
|
||||
struct timer_list clean_timer;
|
||||
};
|
||||
|
||||
struct pasemi_mac_rxring {
|
||||
|
Reference in New Issue
Block a user