Commit e77975e0 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David S. Miller

slip/plip: Use netif_rx().

Since commit
   baebdf48 ("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().
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b903117b
...@@ -676,7 +676,7 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl, ...@@ -676,7 +676,7 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl,
case PLIP_PK_DONE: case PLIP_PK_DONE:
/* Inform the upper layer for the arrival of a packet. */ /* Inform the upper layer for the arrival of a packet. */
rcv->skb->protocol=plip_type_trans(rcv->skb, dev); rcv->skb->protocol=plip_type_trans(rcv->skb, dev);
netif_rx_ni(rcv->skb); netif_rx(rcv->skb);
dev->stats.rx_bytes += rcv->length.h; dev->stats.rx_bytes += rcv->length.h;
dev->stats.rx_packets++; dev->stats.rx_packets++;
rcv->skb = NULL; rcv->skb = NULL;
......
...@@ -368,7 +368,7 @@ static void sl_bump(struct slip *sl) ...@@ -368,7 +368,7 @@ static void sl_bump(struct slip *sl)
skb_put_data(skb, sl->rbuff, count); skb_put_data(skb, sl->rbuff, count);
skb_reset_mac_header(skb); skb_reset_mac_header(skb);
skb->protocol = htons(ETH_P_IP); skb->protocol = htons(ETH_P_IP);
netif_rx_ni(skb); netif_rx(skb);
dev->stats.rx_packets++; dev->stats.rx_packets++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment