From: Zhu Yi Date: Thu, 25 Jun 2009 10:28:30 +0000 (+0800) Subject: iwmc3200wifi: replace netif_rx with netif_rx_ni X-Git-Tag: upstream/snapshot3+hdmi~17671^2~677 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd13fd649879b6230be5d855e00c286c5e60f354;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git iwmc3200wifi: replace netif_rx with netif_rx_ni The patch uses netif_rx_ni() over netif_rx() to post buffers to upper network code because it is always scheduled in a workqueue. The problem was first observed from a dynamic ticks warning: "NOHZ: local_softirq_pending ..." Signed-off-by: Zhu Yi Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index 55871da..5d2239f 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c @@ -1373,7 +1373,7 @@ static void iwm_rx_process_packet(struct iwm_priv *iwm, ndev->stats.rx_packets++; ndev->stats.rx_bytes += skb->len; - if (netif_rx(skb) == NET_RX_DROP) { + if (netif_rx_ni(skb) == NET_RX_DROP) { IWM_ERR(iwm, "Packet dropped\n"); ndev->stats.rx_dropped++; }