From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2017 06:08:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,292,1491289200"; d="scan'208";a="83996107" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.81]) ([10.237.220.81]) by orsmga004.jf.intel.com with ESMTP; 05 May 2017 06:08:53 -0700 To: Hemant Agrawal Cc: dev@dpdk.org References: <1493810472-668-1-git-send-email-hemant.agrawal@nxp.com> <1493810472-668-5-git-send-email-hemant.agrawal@nxp.com> From: Ferruh Yigit Message-ID: Date: Fri, 5 May 2017 14:08:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <1493810472-668-5-git-send-email-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Fri, 05 May 2017 13:08:55 -0000 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 > --- <...>