From: Ferruh Yigit Date: Thu, 7 Apr 2016 15:55:17 +0000 (+0100) Subject: kni: fix possible deadlock X-Git-Tag: spdx-start~7046 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e274c5f024de82be3ad7a7d617cade09afa091d4;p=dpdk.git 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 --- 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;