Respect the RX quota. This improves poll time by about 0.7us when the
authorMichael Brown <mcb30@etherboot.org>
Thu, 18 Jan 2007 12:34:12 +0000 (12:34 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 18 Jan 2007 12:34:12 +0000 (12:34 +0000)
quota is 1.

src/drivers/net/rtl8139.c

index 81b6ccf..c887960 100644 (file)
@@ -450,6 +450,7 @@ static void rtl_poll ( struct net_device *netdev, unsigned int rx_quota ) {
                                 rtl->rx.ring, wrapped_len );
 
                        netdev_rx ( netdev, rx_pkb );
+                       rx_quota--;
                } else {
                        DBG ( "RX bad packet (status %#04x len %d)\n",
                              rx_status, rx_len );