diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-12-14 17:39:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-20 00:44:30 -0500 |
commit | 1a75972c61f2c224eb5283c183f9f6b17fb09b6b (patch) | |
tree | 980ba3d77376e34cbbef36336ad9c2c4b351c317 | |
parent | d1ed113f1669390da9898da3beddcc058d938587 (diff) |
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 <eric.dumazet@gmail.com>
Acked-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ifb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index 8bcacd7c771..124dac4532b 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c | |||
@@ -96,7 +96,7 @@ static void ri_tasklet(unsigned long dev) | |||
96 | dev_queue_xmit(skb); | 96 | dev_queue_xmit(skb); |
97 | } else if (from & AT_INGRESS) { | 97 | } else if (from & AT_INGRESS) { |
98 | skb_pull(skb, skb->dev->hard_header_len); | 98 | skb_pull(skb, skb->dev->hard_header_len); |
99 | netif_rx(skb); | 99 | netif_receive_skb(skb); |
100 | } else | 100 | } else |
101 | BUG(); | 101 | BUG(); |
102 | } | 102 | } |