From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [RFC PATCH 5/5] kni: support multiple userspace process working with kni module Date: Mon, 8 May 2017 15:20:40 +0530 Message-ID: <3cf5424d-ea0c-5d8e-df02-6d8082f0e30c@nxp.com> References: <1493810472-668-1-git-send-email-hemant.agrawal@nxp.com> <1493810472-668-5-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: To: Ferruh Yigit 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) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 >> --- > <...> >