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 18 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
 				 rtl->rx.ring, wrapped_len );
450
 				 rtl->rx.ring, wrapped_len );
451
 
451
 
452
 			netdev_rx ( netdev, rx_pkb );
452
 			netdev_rx ( netdev, rx_pkb );
453
+			rx_quota--;
453
 		} else {
454
 		} else {
454
 			DBG ( "RX bad packet (status %#04x len %d)\n",
455
 			DBG ( "RX bad packet (status %#04x len %d)\n",
455
 			      rx_status, rx_len );
456
 			      rx_status, rx_len );

Loading…
Cancel
Save