From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 07 Apr 2016 08:55:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,449,1455004800"; d="scan'208";a="953838139" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 07 Apr 2016 08:55:22 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u37FtLuV027898; Thu, 7 Apr 2016 16:55:21 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u37FtKek006905; Thu, 7 Apr 2016 16:55:20 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u37FtKoI006901; Thu, 7 Apr 2016 16:55:20 +0100 From: Ferruh Yigit To: dev@dpdk.org Cc: Jay Rolette , Neil Horman , Ferruh Yigit Date: Thu, 7 Apr 2016 16:55:17 +0100 Message-Id: <1460044517-6871-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <57066FC5.6000900@intel.com> References: <57066FC5.6000900@intel.com> Subject: [dpdk-dev] [PATCH] kni: fix possible deadlock X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2016 15:55:44 -0000 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