From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: [PATCH] kni: fix possible deadlock Date: Thu, 7 Apr 2016 16:55:17 +0100 Message-ID: <1460044517-6871-1-git-send-email-ferruh.yigit@intel.com> References: <57066FC5.6000900@intel.com> Cc: Jay Rolette , Neil Horman , Ferruh Yigit To: dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 46D7D2BA8 for ; Thu, 7 Apr 2016 17:55:44 +0200 (CEST) In-Reply-To: <57066FC5.6000900@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 e02edcb..cfa8339 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.5.5