diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2022-03-05 23:12:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-06 11:05:31 +0000 |
commit | 00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254 (patch) | |
tree | fa15b812776d96faafb450254ba86e2f26de781a /drivers/net/can/slcan.c | |
parent | a3d73e15909bdcf25f341e6623cc165ba7eb5968 (diff) | |
download | lwn-00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254.tar.gz lwn-00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254.zip |
can: Use netif_rx().
Since commit
baebdf48c3600 ("net: dev: Makes sure netif_rx() can be invoked in any context.")
the function netif_rx() can be used in preemptible/thread context as
well as in interrupt context.
Use netif_rx().
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: linux-can@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/slcan.c')
-rw-r--r-- | drivers/net/can/slcan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index 27783fbf011f..ec294d0c5722 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c @@ -221,7 +221,7 @@ static void slc_bump(struct slcan *sl) if (!(cf.can_id & CAN_RTR_FLAG)) sl->dev->stats.rx_bytes += cf.len; - netif_rx_ni(skb); + netif_rx(skb); } /* parse tty input stream */ |