瀏覽代碼

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

quota is 1.
tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
48fe701716
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/drivers/net/rtl8139.c

+ 1
- 0
src/drivers/net/rtl8139.c 查看文件

@@ -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…
取消
儲存