Explorar el Código

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

quota is 1.
tags/v0.9.3
Michael Brown hace 17 años
padre
commit
48fe701716
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/drivers/net/rtl8139.c

+ 1
- 0
src/drivers/net/rtl8139.c Ver fichero

@@ -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…
Cancelar
Guardar