Skip to contentSkip to conversation

libertas cs/sdio: fix 'NOHZ: local_softirq_pending 08' message

PATCH Holger Schurig 1 participant 1 message Jan 16, 2008 1 message not in the archive Networking drivers (wireless)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Holger Schurig

author Acked-by
#1 lore raw
Quoted 2 lines

This patch is against 2.6.24-rc8 and has only been tested with the sdio interface, please test it with usb.

The patch should be against wireless-2.6, branch everything. I'm adding a revised version:

----

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.

drivers/net/wireless/libertas/rx.c +4 -1
Index: wireless-2.6/drivers/net/wireless/libertas/rx.c
===================================================================
@@ -247,7 +247,10 @@ int lbs_process_rxed_packet(struct lbs_p
 	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: