From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=3X+Pa5erD4QRgI7zJBfSRuCTGw7G1o2E9XpuUPoyI8k=; b=mOqTK8S7XWtokosf90+fV6yBeBFQw37cJcMS4ZuHMMOSKxCRHOLe2hqEymm783e719 lK0xTjLZxzvCZ2LAt9sGH2E9EDj3b5QP56MbXJVoCuEtHG0TYO3TDUJDeDwbDC5JNS73 y1cqI1CudnA0ABdouxTQXsgHjS/RHB5QbpJcyp1FkTPORX+ws+pEDD1lyTZMqhIkT+kv ME9WUoMb5DhTw6oix+2peMaeLJCq0yHC8i2qp3BEWiFGNIxtCAUthIm3DiGYRQhbQ4uF oulucva2IUWAkzPgrCTyQkMCGh+k2rt2h5+NpWQz0lmnp75Xe5gV1duCQY1mNmcO/tS/ cRqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=3X+Pa5erD4QRgI7zJBfSRuCTGw7G1o2E9XpuUPoyI8k=; b=QP8s+ZlK6LSshOVs7MM7DTmNn4ARASdQzbaRNyjbqRUhoQcn1zZdJUh5YDkOYYOWV/ 3Qb55iGzTRjExfO0dQvmVhyDbLK6tFsRquMPu8jqU4paPxhbTdM1wvCZNjSVJeXlYyBL PjZvemSAxJjDUOoccpoyJlRljMV6w8i3VrGjiDpTAcfMq0f4cDZnSneSvmRJl/vjBDJM 5tsWgXxshSwR/CjorcmwMdwpkhqG96mEk6aC99xkVAWeNsGIpMfLBACd00EPOElbFNFh TBFPvPF+M2LKEPmC7UIdTP1ItMKBX9x0sIG5qnA6Kel0e0pcSLbnBhiMuVPEv2uj9Wut iU6g== X-Gm-Message-State: ALoCoQnQ9B8ENvfv8VWdYonDfUggo7I/H+0aw+GF/pLKVuzoILIYqAIZXf0HMJDQqU05hsW4S5TZ X-Received: by 10.28.55.144 with SMTP id e138mr21481726wma.69.1446600552620; Tue, 03 Nov 2015 17:29:12 -0800 (PST) Received: from xps13.localnet ([93.158.41.25]) by smtp.gmail.com with ESMTPSA id 186sm26058333wmp.10.2015.11.03.17.29.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Nov 2015 17:29:12 -0800 (PST) Date: Tue, 03 Nov 2015 17:29:12 -0800 (PST) X-Google-Original-Date: Wed, 04 Nov 2015 02:28 +0100 From: Thomas Monjalon To: Dex Chen Message-ID: <12072038.kqRKzOlb72@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3] kni: allow per-net instances X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 01:29:12 -0000 > > 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