From: Eric Dumazet Date: Thu, 5 Feb 2015 22:58:14 +0000 (-0800) Subject: net: use netif_rx_ni() from process context X-Git-Tag: v4.14-rc1~5989^2~3^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91e83133e70ebe1572746d1ad858b4eb28ab9b53;p=platform%2Fkernel%2Flinux-rpi.git net: use netif_rx_ni() from process context Hotpluging a cpu might be rare, yet we have to use proper handlers when taking over packets found in backlog queues. dev_cpu_callback() runs from process context, thus we should call netif_rx_ni() to properly invoke softirq handler. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 7fe8292..6c1556a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -7064,11 +7064,11 @@ static int dev_cpu_callback(struct notifier_block *nfb, /* Process offline CPU's input_pkt_queue */ while ((skb = __skb_dequeue(&oldsd->process_queue))) { - netif_rx_internal(skb); + netif_rx_ni(skb); input_queue_head_incr(oldsd); } while ((skb = skb_dequeue(&oldsd->input_pkt_queue))) { - netif_rx_internal(skb); + netif_rx_ni(skb); input_queue_head_incr(oldsd); }