|
@@ -750,13 +750,8 @@ void net_poll ( void ) {
|
750
|
750
|
if ( netdev_rx_frozen ( netdev ) )
|
751
|
751
|
continue;
|
752
|
752
|
|
753
|
|
- /* Process at most one received packet. Give priority
|
754
|
|
- * to getting packets out of the NIC over processing
|
755
|
|
- * the received packets, because we advertise a window
|
756
|
|
- * that assumes that we can receive packets from the
|
757
|
|
- * NIC faster than they arrive.
|
758
|
|
- */
|
759
|
|
- if ( ( iobuf = netdev_rx_dequeue ( netdev ) ) ) {
|
|
753
|
+ /* Process all received packets */
|
|
754
|
+ while ( ( iobuf = netdev_rx_dequeue ( netdev ) ) ) {
|
760
|
755
|
|
761
|
756
|
DBGC2 ( netdev, "NETDEV %s processing %p (%p+%zx)\n",
|
762
|
757
|
netdev->name, iobuf, iobuf->data,
|