diff mbox series

kni_net.c: use netif_rx() instead of netif_rx_ni()

Message ID 20220511112334.3233433-1-mingli.yu@windriver.com (mailing list archive)
State New
Delegated to: Andrew Rybchenko
Headers show
Series kni_net.c: use netif_rx() instead of netif_rx_ni() | expand

Checks

Context Check Description
ci/iol-testing warning apply patch failure
ci/github-robot: build success github build: passed
ci/Intel-compilation warning apply issues
ci/checkpatch success coding style OK

Commit Message

mingli.yu@windriver.com May 11, 2022, 11:23 a.m. UTC
From: Mingli Yu <mingli.yu@windriver.com>

The netif_rx_ni is removed in below commit after kernel upgraded
to 5.18, so change accordingly to fix the gap.
2655926aea9b net: Remove netif_rx_any_context() and netif_rx_ni().

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 kernel/linux/kni/kni_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c
index 7fcfa106cb..58e8fe5af6 100644
--- a/kernel/linux/kni/kni_net.c
+++ b/kernel/linux/kni/kni_net.c
@@ -368,7 +368,7 @@  kni_net_rx_normal(struct kni_dev *kni)
 		skb->ip_summed = CHECKSUM_UNNECESSARY;
 
 		/* Call netif interface */
-		netif_rx_ni(skb);
+		netif_rx(skb);
 
 		/* Update statistics */
 		kni->stats.rx_bytes += len;