sh_eth: NAPI requires netif_receive_skb()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 2 Sep 2013 23:03:10 +0000 (03:03 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 18:14:53 +0000 (14:14 -0400)
Driver supporting NAPI should use NAPI-specific function for receiving packets,
so netif_rx() should be changed to netif_receive_skb().

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index a753928bab9c683d54036f92350e6db466eaa7b9..1ccd5959c0bf349f90122e5326ee90bf19ca420b 100644 (file)
@@ -1299,7 +1299,7 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
                                skb_reserve(skb, NET_IP_ALIGN);
                        skb_put(skb, pkt_len);
                        skb->protocol = eth_type_trans(skb, ndev);
-                       netif_rx(skb);
+                       netif_receive_skb(skb);
                        ndev->stats.rx_packets++;
                        ndev->stats.rx_bytes += pkt_len;
                }