diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2022-03-03 18:15:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-04 12:02:19 +0000 |
commit | ad0a043fc26c17522ede3cc986d559f05ece20f4 (patch) | |
tree | 72d7901d53d36b2506ccd3430b751b185e0763c6 /net/core/dev.c | |
parent | 2e83bdd5d6cf4cee3204efe4ea6f33f5f743dd8d (diff) | |
download | linux-ad0a043fc26c17522ede3cc986d559f05ece20f4.tar.bz2 |
net: dev: 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().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 5db2443c2371..96bcc003e018 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3860,7 +3860,7 @@ int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) skb->ip_summed = CHECKSUM_UNNECESSARY; WARN_ON(!skb_dst(skb)); skb_dst_force(skb); - netif_rx_ni(skb); + netif_rx(skb); return 0; } EXPORT_SYMBOL(dev_loopback_xmit); @@ -10949,11 +10949,11 @@ static int dev_cpu_dead(unsigned int oldcpu) /* Process offline CPU's input_pkt_queue */ while ((skb = __skb_dequeue(&oldsd->process_queue))) { - netif_rx_ni(skb); + netif_rx(skb); input_queue_head_incr(oldsd); } while ((skb = skb_dequeue(&oldsd->input_pkt_queue))) { - netif_rx_ni(skb); + netif_rx(skb); input_queue_head_incr(oldsd); } |