net: sgi-xp: Use netif_rx().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 3 Mar 2022 17:14:59 +0000 (18:14 +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().

Cc: Robin Holt <robinmholt@gmail.com>
Cc: Steve Wahl <steve.wahl@hpe.com>
Cc: Mike Travis <mike.travis@hpe.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/misc/sgi-xp/xpnet.c

index dab7b92..50644f8 100644 (file)
@@ -247,7 +247,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
        xpnet_device->stats.rx_packets++;
        xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN;
 
-       netif_rx_ni(skb);
+       netif_rx(skb);
        xpc_received(partid, channel, (void *)msg);
 }