From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by dpdk.org (Postfix) with ESMTP id 91CFEB35F for ; Thu, 10 Jul 2014 19:04:12 +0200 (CEST) Received: by mail-pd0-f177.google.com with SMTP id y10so11033209pdj.22 for ; Thu, 10 Jul 2014 10:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=tgsfcaf+C5qmj0JjqY90RMLJMeO3VqOn8fhjHRdSz2g=; b=dnTc6ELGFswOLTxQaLrjThJAyQhIBVHgK8GmT/lPuVT9AZRbK1U0P+1EcDdlSZzS3O lfA+28vT5OBtbi0BmGz95YsMh6113Nbir3Wh1erbGHIlLKgCS8Idqln6wUiPp/+LcPnJ TwiuDxUc2lKzi7xyJxeDqUOIU7/tQ+Ry947PuRpySs8LtN4ihAKp5XpvdujfvYyeBy1i wiJPy9b29Ms+dObvnG/BCsUUieZi/d5TkGhrcoRY7dHuhHx1icWm6+QkapoTXVJN98bW cvaGRSmKr1/jsrv0vwCN0v4f0pjPBFmpvNkH/S7ZiIsG5/WBCmST5ZQQjUe4tL7hNgKD 73PQ== X-Received: by 10.66.66.140 with SMTP id f12mr48109392pat.78.1405011875607; Thu, 10 Jul 2014 10:04:35 -0700 (PDT) Received: from ypwang-nb.ypwang.info ([59.105.180.111]) by mx.google.com with ESMTPSA id j3sm16084878pdk.65.2014.07.10.10.04.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jul 2014 10:04:35 -0700 (PDT) From: Yao-Po Wang To: dev@dpdk.org Date: Fri, 11 Jul 2014 01:04:25 +0800 Message-Id: <1405011865-26028-1-git-send-email-blue119@gmail.com> X-Mailer: git-send-email 2.0.0 Subject: [dpdk-dev] [PATCH] kni: use netif_rx instead of netif_receive_skb in which ocurr deallock on userpace contex 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, 10 Jul 2014 17:04:13 -0000 --- 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 d3c0190..28cc5ab 100644 --- a/lib/librte_eal/linuxapp/kni/kni_net.c +++ b/lib/librte_eal/linuxapp/kni/kni_net.c @@ -179,7 +179,7 @@ kni_net_rx_normal(struct kni_dev *kni) skb->ip_summed = CHECKSUM_UNNECESSARY; /* Call netif interface */ - netif_receive_skb(skb); + netif_rx(skb); /* Update statistics */ kni->stats.rx_bytes += len; -- 2.0.0