net: macvlan: Use netif_rx().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 3 Mar 2022 17:15:03 +0000 (18:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 12:02:19 +0000 (12:02 +0000)
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>
drivers/net/macvlan.c

index d87c06c..33753a2 100644 (file)
@@ -285,7 +285,7 @@ static void macvlan_broadcast(struct sk_buff *skb,
                if (likely(nskb))
                        err = macvlan_broadcast_one(nskb, vlan, eth,
                                        mode == MACVLAN_MODE_BRIDGE) ?:
-                             netif_rx_ni(nskb);
+                             netif_rx(nskb);
                macvlan_count_rx(vlan, skb->len + ETH_HLEN,
                                 err == NET_RX_SUCCESS, true);
        }