From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: allow per-net instances Date: Wed, 21 Oct 2015 17:40:18 +0200 Message-ID: <4823059.cgSmiygnNj@xps13> References: <1435831933-13339-1-git-send-email-dex.chen@ruckuswireless.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Dex Chen Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id 9808FC3BA for ; Wed, 21 Oct 2015 17:41:24 +0200 (CEST) Received: by wicll6 with SMTP id ll6so97022215wic.0 for ; Wed, 21 Oct 2015 08:41:24 -0700 (PDT) In-Reply-To: <1435831933-13339-1-git-send-email-dex.chen@ruckuswireless.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, It may look strange but you have to ask for reviews of your patches. Otherwise, people forget to check it. Helin, You are the KNI maintainer. Could you look at it please? 2015-07-02 18:12, Dex Chen: > There is a global variable 'device_in_use' which is used to make sure > only one instance is using /dev/kni device. If you were using LXC, you > will find there is only one instance of KNI example could be run even > differnt namespaces were created. > > In order to have /dev/kni used simultaneously in different namespaces, > making all of global variables as per network namespace variables. > > With regard to single kernel thread mode, there will be one kernel > thread for each of network namespace. > > Signed-off-by: Dex Chen