From e274c5f024de82be3ad7a7d617cade09afa091d4 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Thu, 7 Apr 2016 16:55:17 +0100 Subject: [PATCH] kni: fix possible deadlock netif_rx() should be used in interrupt context. Replace it with netif_rx_ni() which is safe to use in process context. Signed-off-by: Ferruh Yigit --- lib/librte_eal/linuxapp/kni/kni_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c index e02edcbe9c..cfa8339865 100644 --- a/lib/librte_eal/linuxapp/kni/kni_net.c +++ b/lib/librte_eal/linuxapp/kni/kni_net.c @@ -175,7 +175,7 @@ kni_net_rx_normal(struct kni_dev *kni) skb->ip_summed = CHECKSUM_UNNECESSARY; /* Call netif interface */ - netif_rx(skb); + netif_rx_ni(skb); /* Update statistics */ kni->stats.rx_bytes += len; -- 2.20.1