From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] kni: allow per-net instances Date: Tue, 03 Nov 2015 17:29:12 -0800 (PST) Message-ID: <12072038.kqRKzOlb72@xps13> References: <1435831933-13339-1-git-send-email-dex.chen@ruckuswireless.com> <1445914597-16726-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-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id B245B58F1 for ; Wed, 4 Nov 2015 02:29:12 +0100 (CET) Received: by wmll128 with SMTP id l128so101958401wml.0 for ; Tue, 03 Nov 2015 17:29:12 -0800 (PST) In-Reply-To: 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" > > 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 different 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 > Acked-by: Helin Zhang > > And make sure checkpatch check has been done. Applied, thanks