From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [RFC PATCH 5/5] kni: support multiple userspace process working with kni module Date: Fri, 5 May 2017 14:08:52 +0100 Message-ID: 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 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Hemant Agrawal Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 47F39F72 for ; Fri, 5 May 2017 15:08:54 +0200 (CEST) In-Reply-To: <1493810472-668-5-git-send-email-hemant.agrawal@nxp.com> Content-Language: en-US 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/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; ... } > > Signed-off-by: Hemant Agrawal > --- <...>