mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
Respect the RX quota. This improves poll time by about 0.7us when the
quota is 1.
This commit is contained in:
@@ -450,6 +450,7 @@ static void rtl_poll ( struct net_device *netdev, unsigned int rx_quota ) {
|
|||||||
rtl->rx.ring, wrapped_len );
|
rtl->rx.ring, wrapped_len );
|
||||||
|
|
||||||
netdev_rx ( netdev, rx_pkb );
|
netdev_rx ( netdev, rx_pkb );
|
||||||
|
rx_quota--;
|
||||||
} else {
|
} else {
|
||||||
DBG ( "RX bad packet (status %#04x len %d)\n",
|
DBG ( "RX bad packet (status %#04x len %d)\n",
|
||||||
rx_status, rx_len );
|
rx_status, rx_len );
|
||||||
|
|||||||
Reference in New Issue
Block a user