{
struct bcm6368_enetsw *priv = netdev_priv(dev);
struct device *kdev = &priv->pdev->dev;
+ struct list_head rx_list;
int processed = 0;
+ INIT_LIST_HEAD(&rx_list);
+
/* don't scan ring further than number of refilled
* descriptor */
if (budget > priv->rx_desc_count)
skb->protocol = eth_type_trans(skb, dev);
dev->stats.rx_packets++;
dev->stats.rx_bytes += len;
- netif_receive_skb(skb);
+ list_add_tail(&skb->list, &rx_list);
} while (processed < budget);
+ netif_receive_skb_list(&rx_list);
priv->rx_desc_count -= processed;
if (processed || !priv->rx_desc_count) {