From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0098.outbound.protection.outlook.com [157.56.111.98]) by dpdk.org (Postfix) with ESMTP id DA3D437A4 for ; Thu, 26 Mar 2015 13:32:47 +0100 (CET) Received: from BN3PR0301MB1202.namprd03.prod.outlook.com (25.161.207.155) by BN3PR0301MB1202.namprd03.prod.outlook.com (25.161.207.155) with Microsoft SMTP Server (TLS) id 15.1.118.21; Thu, 26 Mar 2015 12:32:46 +0000 Received: from BN3PR0301MB1202.namprd03.prod.outlook.com ([25.161.207.155]) by BN3PR0301MB1202.namprd03.prod.outlook.com ([25.161.207.155]) with mapi id 15.01.0118.022; Thu, 26 Mar 2015 12:32:46 +0000 From: "Dey, Souvik" To: Neil Horman Thread-Topic: [dpdk-dev] Kernel deadlock due to rte_kni Thread-Index: AdBnMbEW3p7NWggVSFisNNoCFlCmTwAgGlkAAAAt3dAAAyDSAAAAYIWg Date: Thu, 26 Mar 2015 12:32:46 +0000 Message-ID: References: <20150326104624.GC32299@hmsreliant.think-freely.org> <20150326122106.GD32299@hmsreliant.think-freely.org> In-Reply-To: <20150326122106.GD32299@hmsreliant.think-freely.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [121.242.142.135] authentication-results: tuxdriver.com; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1202; x-forefront-antispam-report: BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(377454003)(24454002)(46102003)(76576001)(2950100001)(87936001)(2656002)(99286002)(2900100001)(62966003)(110136001)(92566002)(77156002)(74316001)(122556002)(40100003)(93886004)(102836002)(54356999)(76176999)(19580395003)(50986999)(86362001)(19580405001)(33656002)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB1202; H:BN3PR0301MB1202.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006); SRVR:BN3PR0301MB1202; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1202; x-forefront-prvs: 0527DFA348 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sonusnet.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2015 12:32:46.3938 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 29a671dc-ed7e-4a54-b1e5-8da1eb495dc3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1202 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Kernel deadlock due to rte_kni 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, 26 Mar 2015 12:32:48 -0000 Thanks got your point then we should be changing this in DPDK also as in 1.= 8 we are using netif_rx in rte_kni.c. Souvik -----Original Message----- From: Neil Horman [mailto:nhorman@tuxdriver.com]=20 Sent: Thursday, March 26, 2015 5:51 PM To: Dey, Souvik Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Kernel deadlock due to rte_kni On Thu, Mar 26, 2015 at 11:01:14AM +0000, Dey, Souvik wrote: > Do you see any benefit of calling netif_rx_ni() and not directly netif_rx= () ? >=20 Yes, I see using the ni variant as not being a bug. kni_net_rx is run from= process context (it runs as a thread created by kthread_create). netif_rx= assumes execution occurs in interrupt context, so deadlocks like those bel= ow can still occur if you don't disable pre-emption and irqs on the local c= pu. netif_rx_ni (the No Interrupt) variant, does that for you. Neil