Skip to contentSkip to conversation

slcan: ldisc generated skbs are received in softirq context

PATCH Applied Oliver Hartkopp 2 participants 2 messages Aug 10, 2011 – Aug 11, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slcan: ldisc generated skbs are received in softirq context

As this discussion pointed out

http://marc.info/?l=linux-netdev&m=131257225602375

netdevices that are based on serial line disciplines should use netif_rx_ni() when pushing received socketbuffers into the netdev rx queue.

Following commit 614851601c121b1320a35757ab88292d6272f906 ("slip: fix NOHZ local_softirq_pending 08 warning") this patch updates the slcan driver accordingly.

CC Matvejchikov Ilya <[email protected]>
CC Alan Cox <[email protected]>

---

drivers/net/can/slcan.c +1 -1
index f523f1c..4b70b7e 100644
@@ -197,7 +197,7 @@ static void slc_bump(struct slcan *sl)
 	skb->ip_summed = CHECKSUM_UNNECESSARY;
 	memcpy(skb_put(skb, sizeof(struct can_frame)),
 	       &cf, sizeof(struct can_frame));
-	netif_rx(skb);
+	netif_rx_ni(skb);
 
 	sl->dev->stats.rx_packets++;
 	sl->dev->stats.rx_bytes += cf.can_dlc;
maintainer Applied
#1 lore raw

From: Oliver Hartkopp <[email protected]>
Date: Wed, 10 Aug 2011 17:18:59 +0200

Quoted 7 lines

As this discussion pointed out

http://marc.info/?l=linux-netdev&m=131257225602375

netdevices that are based on serial line disciplines should use netif_rx_ni() when pushing received socketbuffers into the netdev rx queue.

Quoted 7 lines

Following commit 614851601c121b1320a35757ab88292d6272f906 ("slip: fix NOHZ local_softirq_pending 08 warning") this patch updates the slcan driver accordingly.

CC Matvejchikov Ilya <[email protected]>
CC Alan Cox <[email protected]>

Applied.