From: Eric Dumazet Date: Tue, 14 Dec 2010 22:39:58 +0000 (+0000) Subject: ifb: use netif_receive_skb() instead of netif_rx() X-Git-Tag: v3.0~2504^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a75972c61f2c224eb5283c183f9f6b17fb09b6b;p=platform%2Fkernel%2Flinux-amlogic.git ifb: use netif_receive_skb() instead of netif_rx() In ri_tasklet(), we run from softirq, so can directly handle packet through netif_receive_skb() instead of netif_rx(). There is no risk of recursion. Signed-off-by: Eric Dumazet Acked-by: Changli Gao Signed-off-by: David S. Miller --- diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index 8bcacd7..124dac45 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c @@ -96,7 +96,7 @@ static void ri_tasklet(unsigned long dev) dev_queue_xmit(skb); } else if (from & AT_INGRESS) { skb_pull(skb, skb->dev->hard_header_len); - netif_rx(skb); + netif_receive_skb(skb); } else BUG(); }