Browse Source

Respect the RX quota. This improves poll time by about 0.7us when the

quota is 1.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
48fe701716
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/drivers/net/rtl8139.c

+ 1
- 0
src/drivers/net/rtl8139.c View File

@@ -450,6 +450,7 @@ static void rtl_poll ( struct net_device *netdev, unsigned int rx_quota ) {
450 450
 				 rtl->rx.ring, wrapped_len );
451 451
 
452 452
 			netdev_rx ( netdev, rx_pkb );
453
+			rx_quota--;
453 454
 		} else {
454 455
 			DBG ( "RX bad packet (status %#04x len %d)\n",
455 456
 			      rx_status, rx_len );

Loading…
Cancel
Save