]> git.baikalelectronics.ru Git - kernel.git/commit
slcan: ldisc generated skbs are received in softirq context
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 10 Aug 2011 05:18:59 +0000 (05:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2011 12:52:57 +0000 (05:52 -0700)
commitc726ed57eeedc2e315d10d031efdeced9bb847ff
treee38aa3277bb55a2d298bc857b1042267f0e021eb
parent380181236f55c58ecf3fccfd0df353f3c361d1b9
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 1ef44435a18efeadab84054f2a725afbdfcb1d8a ("slip: fix NOHZ
local_softirq_pending 08 warning") this patch updates the slcan driver
accordingly.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
CC: Matvejchikov Ilya <matvejchikov@gmail.com>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/slcan.c