Skip to content

Commit

Permalink
libertas cs/sdio: fix 'NOHZ: local_softirq_pending 08' message
Browse files Browse the repository at this point in the history
netif_rx should be called only from interrupt context. if_cs and if_sdio receive
packets from other contexts, and thus should call netif_rx_ni.

Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
Acked-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and David S. Miller committed Jan 28, 2008
1 parent 8ac919b commit ae3e0fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/wireless/libertas/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb)
priv->stats.rx_packets++;

skb->protocol = eth_type_trans(skb, dev);
netif_rx(skb);
if (in_interrupt())
netif_rx(skb);
else
netif_rx_ni(skb);

ret = 0;
done:
Expand Down

0 comments on commit ae3e0fc

Please sign in to comment.