Search Linux Wireless

Re: [PATCH] libertas cs/sdio: fix 'NOHZ: local_softirq_pending 08' message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Holger Schurig <hs4233@xxxxxxxxxxxxxxxxxxxx>

> 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.

Signed-off-by: Marc Pignat <marc.pignat@xxxxxxx>

Index: wireless-2.6/drivers/net/wireless/libertas/rx.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/libertas/rx.c	2008-01-16 16:45:12.000000000 +0100
+++ wireless-2.6/drivers/net/wireless/libertas/rx.c	2008-01-16 16:45:42.000000000 +0100
@@ -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:
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux