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:
Родитель
4343b866aa
Коммит
3fb4430e73
|
@ -196,7 +196,7 @@ static void ldisc_receive(struct tty_struct *tty, const u8 *data,
|
||||||
skb_reset_mac_header(skb);
|
skb_reset_mac_header(skb);
|
||||||
debugfs_rx(ser, data, count);
|
debugfs_rx(ser, data, count);
|
||||||
/* Push received packet up the stack. */
|
/* Push received packet up the stack. */
|
||||||
ret = netif_rx_ni(skb);
|
ret = netif_rx(skb);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
ser->dev->stats.rx_packets++;
|
ser->dev->stats.rx_packets++;
|
||||||
ser->dev->stats.rx_bytes += count;
|
ser->dev->stats.rx_bytes += count;
|
||||||
|
|
|
@ -99,7 +99,7 @@ static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt)
|
||||||
else
|
else
|
||||||
skb->ip_summed = CHECKSUM_NONE;
|
skb->ip_summed = CHECKSUM_NONE;
|
||||||
|
|
||||||
netif_rx_any_context(skb);
|
netif_rx(skb);
|
||||||
|
|
||||||
/* Update statistics. */
|
/* Update statistics. */
|
||||||
priv->netdev->stats.rx_packets++;
|
priv->netdev->stats.rx_packets++;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче