From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0069.outbound.protection.outlook.com [104.47.37.69]) by dpdk.org (Postfix) with ESMTP id 8F0A12952 for ; Mon, 8 May 2017 11:50:47 +0200 (CEST) Received: from BN6PR03CA0052.namprd03.prod.outlook.com (10.173.137.14) by BLUPR03MB168.namprd03.prod.outlook.com (10.255.212.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Mon, 8 May 2017 09:50:45 +0000 Received: from BN1BFFO11FD038.protection.gbl (2a01:111:f400:7c10::1:160) by BN6PR03CA0052.outlook.office365.com (2603:10b6:404:4c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Mon, 8 May 2017 09:50:46 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD038.mail.protection.outlook.com (10.58.144.101) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1047.9 via Frontend Transport; Mon, 8 May 2017 09:50:45 +0000 Received: from [127.0.0.1] (B10814-12.ap.freescale.net [10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v489ofb1021015; Mon, 8 May 2017 02:50:43 -0700 To: Ferruh Yigit References: <1493810472-668-1-git-send-email-hemant.agrawal@nxp.com> <1493810472-668-5-git-send-email-hemant.agrawal@nxp.com> CC: From: Hemant Agrawal Message-ID: <3cf5424d-ea0c-5d8e-df02-6d8082f0e30c@nxp.com> Date: Mon, 8 May 2017 15:20:40 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131387106455926132; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39400400002)(39850400002)(39380400002)(39860400002)(39840400002)(39450400003)(39410400002)(2980300002)(1109001)(1110001)(339900001)(3190300001)(24454002)(189002)(377454003)(199003)(9170700003)(50466002)(229853002)(23676002)(2906002)(81166006)(50986999)(36756003)(7126002)(7246003)(53546009)(8936002)(65826007)(5660300001)(76176999)(31686004)(104016004)(4326008)(105606002)(64126003)(120886001)(305945005)(47776003)(106466001)(498600001)(356003)(230700001)(2950100002)(8676002)(54356999)(53936002)(65806001)(65956001)(6916009)(33646002)(110136004)(38730400002)(31696002)(77096006)(86362001)(6246003)(4001350100001)(189998001)(83506001)(85426001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB168; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD038; 1:zLCKNwCOLmoTLzBXfmVAby7QY4ny02YSHuv+88ZqHLNbJmdKqpo9qJRvRbzplhdaD2npf0RaswJO8I1RB0OJeyI9wZT0GlPJOwGq6i0Bzh0M0iVxu/8wLClaDtAG9kyrcZ6G4PzRJD4YYWPzXzSC6leGMncRPq0zXzI7Jpf3DduCVvzM82egdzzkRf3t7e7aLt1b0kwS9Ele/N2viNgZdT48DBtNJMbRRsWUfoHJ01fpdF2JkCgPDrIgrD1dsQo+tMv4CQTBnoPl7EBEGZCSAjrFTIrJVhZglhrnFBV/Ev0n0mDazqx9bjaqOGv37H0c2Ih02+u8UVdkPNDVwh670YxdkKTCoaeCK2CSf72BejYCuz/Hk7N9x/4tXyVIWsIzONJ8PfBZtamxkdRII7j94zpHkk+aW56p1cH6V7RdrBlJwZbPXQneniXgkjEFsUfjCWEUKnqukfgS+R8KPDWA4AhWvGX8kFV/HSQHxps7HleK2MEWtZZK/a93yaOtEjSGdcFlRMCLMAKs2EfK5z+QYjcT6V9RJe26unhct2Wwulb5XoDzr7/nn6fX3O0f6yJcQgjzxidQA9CbcDwVme33maxdZLysEkV/60dboGUBm7nNFgvCqylKU/4Bz53H0RokVTcgpR01g5BnBmX6V+Zdsw== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 76e6611c-bee9-4ed9-3574-08d495f7b2d6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BLUPR03MB168; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB168; 3:3NStFhAkyHQkGtMmQDzv2Cq8NsPV4soybPuXhOEMqNMEwEh5SrrzFE9zBFMBoyU07GinJIBMjspxDgpjgmP+B5LUEjT71HHqOIL/0rO4O/aLuCSyymbO5JHDXqaQiHeFCyXStYcqgJaWVMqYGAwgpKi3tosKQksMtvn+FNvIed27VDyaZ8fUO7PesgSIRKLpYjfsSc6mzcb3JemeKF6fDd+UvfX7+3738RSLctTu/bS9N00Vo64tizYWtLm3GZFzOtanuQYQRzEoO8Xxy1g1+0fizOFvE55Bj41Rji9rfBU68i2XVsBCMx+/qA/E3lWQ6uySjS4GoyBptg63tlYcuw6xjNqD/2rI7nhKi/x/PiHfx/7n0siEclASZpqQV6aQZPd393lUCoccbj7IcPblUPJCaOu8VwyP4Uqiqe4aH/WD8FtOPszR+o/yo2bASze7; 25:cCfSKZPGQHzAoiewcM06pQz/Ddy9zsG3zUb+OsvhCaCDabGsV10+JyoxT7KEUp+I4UrKqPaOojkNO6lDj1W19R0ZrfygNHGNYZ8YJD9umsiKxjVtx9a3Y0iwbH9KPutrFLo93KDP5rg3EkrRxQEpU+DSLldqou6rcXDFcw3idf7Wg65kdkBuPQ+igHFu1Lpdf7B6xogYMKwB9qEftEPbP6lm5aPUwWHUrzoxsFupREAt9f62cp+aPChM/n1pVBkSmDDCEtQf0qZ1jwHTqOTn57POQDKsdUsho0MDqUMPcyAjcyNsbhLQKa6xY609BWCtZZIGuFlZ3kEZh90VKZsrZPCpw4YzaudWmmLq0L202wn53dH5RjGhhBDZZURnnlw8XW7JDtI0P6sm2676E9TdGKMsa37GxOt+Q2BADH8bbO3/vvIwq7s5g+o2VKMQOzCFq4HYzyMFGxZWllLU28KmCg== X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB168; 31:O9+ZdBYU9oQ5NWi0JHUWTt1g9UiBAKAcs/lmtZZ7LDKRGnqEIGXGlWOKDhJtyjxpXEwCCCTxyG0gzOQfO3vpajsbEDjbH5MNUHkYlPAYCPhWMKYkH1hGZBK5FwUsmsLd4K9dhO0QJNDofbm3iK1+hEjlPEf1ghIWR/ZXIcnh3tmNbq7//RBkxhDeRb/uGKsNL0L2fUkyHHqw+VnIDr6LAR8/jVRt1jzYUOEbbIMwEQUcKgpzSo7omtiYmbI8RXLUEYDLM3Y8C3kUr5H7Efm0eQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13024025)(13023025)(13017025)(5005006)(13018025)(13015025)(8121501046)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123556025)(20161123561025)(20161123563025)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153); SRVR:BLUPR03MB168; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB168; X-Micro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ostics: 1; BLUPR03MB168; 6:gK9qhVGD3ZoPOic+Px7pVeaaBTSUeL6/FpF4IlLkFsEkLqEshWcyOzoRBz2lRwsllhcZFpnF+yCgOkRSls1cPpwMsyluFZivWANfeRUW3sLDRbx9/6rs7CW58Z5WeCXwC6lv0C+Rm+ZDi/lSo+cqiArJe0mgLqXpBem9Q2y9jYE6w/1QNs0++D9EcY94+cXgSMLFmb5Js3zeJwL5acAPE3XE/tHUHOWDDerxzEQl37/F7hs88p5QbTScpzTSnZe/51WN4gRJOdQKPIrLiBDetZhPWuZo1DmUMCBa845J889uxT+iZI7yepROWabn1Zs35dWnR6kULHVFiaO4wT+WWICrj5Yq1QuVuZfh4JF8rv/lib+XtaJbWk8aUnMRxc09P+wzbWwUfUJdsfbYHWFJRxgk5aQUkDCi1uVmWA4898S2VIXlY84i0rQUvdYUZWnWVGONudFv77WvvVZFCy32v3LH1UzavU+76HypwBDxGWKWWwhBNjK46+XINzEW+050XbrdullOLxxZBRl7SQn3Cg==; 5:eTCbzxpbC79+zRW6xKKAxJsL5EWLSbZrJPuPcbpyalRcZXUN5VPH0v+XYZ3zie6EsnGNnrXb6JODIEq+IE1690C4CATtACSt8pWzyndxcEPcaS6zbu2Bfm3/1JRFrtjoBSEry0TxAiB8s9R5GEPCdw2JHV4QuEVyIcZPZOhpElx/5VB5FrAoQ4K4vNkzY7pE; 24:AblrapN/TjbCkSD4TB0OWGeNFguceP7rN8+x7Da8HLyDMrI4/EasTaU/1yXyEu12pp7v2qyySirZp+QIZUU9ugI9ouy8lRPpYNDRur3BVbE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB168; 7:snx7hkH5JceK8GiQGe8zwnBHrzf5WacdAHPIgGBJFoZVUeFmAZBrY+eawjkHbI8yu5tzXMGG5g7fIrWwUoV+fV1j+Tl08qelsycHGmXtqrsitCTl1s/jpF7tS10nE+l8Huas4jU0e4wcEQbvqjI5Bga62qpAbnxKaHGRlppoNm/cfUQzMIy6fCspVAKCyL+6cVGdqb4+C2CS6bs17ARQzcPCqDEyl+sw7fnuun1tRDwruH+R4nEbbNi1j7U5tqpPWcjeydRTTcAwRGV845ANO8vd4kI2YRPkZTGwTBo/h/DP2ac8LTkd8K2LyRrkE5wwopJ+n/7sj+GPOz1Kx3AdkQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2017 09:50:45.4210 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB168 Subject: Re: [dpdk-dev] [RFC PATCH 5/5] kni: support multiple userspace process working with kni module X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 May 2017 09:50:49 -0000 On 5/5/2017 6:38 PM, Ferruh Yigit wrote: > On 5/3/2017 12:21 PM, Hemant Agrawal wrote: >> in case of multiple application using the same KNI module, >> protect that one application will only clean it's own devices. > > Idea looks OK, but there is already a check in the module that prevents > /dev/kni opened by more than one process [1], did you already removed > that limitation? Or is this something else? > > [1] > kni_open(...) { > ... > if (test_and_set_bit(KNI_DEV_IN_USE_BIT_NUM, &knet->device_in_use)) > return -EBUSY; > ... > } > Yes! I have removed that. I will send that in next version. >> >> Signed-off-by: Hemant Agrawal >> --- > <...> >