net: caif: Use netif_rx().
Since commit
baebdf48c3
("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: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4343b866aa
commit
3fb4430e73
|
@ -196,7 +196,7 @@ static void ldisc_receive(struct tty_struct *tty, const u8 *data,
|
|||
skb_reset_mac_header(skb);
|
||||
debugfs_rx(ser, data, count);
|
||||
/* Push received packet up the stack. */
|
||||
ret = netif_rx_ni(skb);
|
||||
ret = netif_rx(skb);
|
||||
if (!ret) {
|
||||
ser->dev->stats.rx_packets++;
|
||||
ser->dev->stats.rx_bytes += count;
|
||||
|
|
|
@ -99,7 +99,7 @@ static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt)
|
|||
else
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
|
||||
netif_rx_any_context(skb);
|
||||
netif_rx(skb);
|
||||
|
||||
/* Update statistics. */
|
||||
priv->netdev->stats.rx_packets++;
|
||||
|
|
Loading…
Reference in New Issue