]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ifb: use netif_receive_skb() instead of netif_rx()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 14 Dec 2010 22:39:58 +0000 (22:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Dec 2010 05:44:30 +0000 (21:44 -0800)
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 <eric.dumazet@gmail.com>
Acked-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ifb.c

index 8bcacd7c7715a18e7c10978533548e3910c08f8a..124dac4532b240dfb16d724172fca616264d0c55 100644 (file)
@@ -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();
        }