From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <helin.zhang@intel.com>
Received: from mga14.intel.com (mga14.intel.com [192.55.52.115])
 by dpdk.org (Postfix) with ESMTP id C5BED7F1C
 for <dev@dpdk.org>; Tue, 27 Oct 2015 04:03:24 +0100 (CET)
Received: from orsmga001.jf.intel.com ([10.7.209.18])
 by fmsmga103.fm.intel.com with ESMTP; 26 Oct 2015 20:03:23 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.20,202,1444719600"; d="scan'208";a="803842227"
Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201])
 by orsmga001.jf.intel.com with ESMTP; 26 Oct 2015 20:03:23 -0700
Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by
 FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS)
 id 14.3.248.2; Mon, 26 Oct 2015 20:03:23 -0700
Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by
 fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS)
 id 14.3.248.2; Mon, 26 Oct 2015 20:03:22 -0700
Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.194]) by
 SHSMSX151.ccr.corp.intel.com ([169.254.3.47]) with mapi id 14.03.0248.002;
 Tue, 27 Oct 2015 11:03:19 +0800
From: "Zhang, Helin" <helin.zhang@intel.com>
To: Dex Chen <dex.chen@ruckuswireless.com>
Thread-Topic: [PATCH v3] kni: allow per-net instances
Thread-Index: AQHREGMv6n/jA2NNs02MewHjcp1XEZ5+ptvw
Date: Tue, 27 Oct 2015 03:03:18 +0000
Message-ID: <F35DEAC7BCE34641BA9FAC6BCA4A12E70A91DD03@SHSMSX104.ccr.corp.intel.com>
References: <1435831933-13339-1-git-send-email-dex.chen@ruckuswireless.com>
 <1445914597-16726-1-git-send-email-dex.chen@ruckuswireless.com>
In-Reply-To: <1445914597-16726-1-git-send-email-dex.chen@ruckuswireless.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.239.127.40]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "dev@dpdk.org" <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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Oct 2015 03:03:25 -0000



> -----Original Message-----
> From: Dex Chen [mailto:dex.chen@ruckuswireless.com]
> Sent: Tuesday, October 27, 2015 10:57 AM
> To: dev@dpdk.org
> Cc: Zhang, Helin; Dex Chen
> Subject: [PATCH v3] kni: allow per-net instances
>=20
> There is a global variable 'device_in_use' which is used to make sure onl=
y one
> instance is using /dev/kni device. If you were using LXC, you will find t=
here is only
> one instance of KNI example could be run even different namespaces were
> created.
>=20
> In order to have /dev/kni used simultaneously in different namespaces, ma=
king
> all of global variables as per network namespace variables.
>=20
> With regard to single kernel thread mode, there will be one kernel thread=
 for
> each of network namespace.
>=20
> Signed-off-by: Dex Chen <dex.chen@ruckuswireless.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>

And make sure checkpatch check has been done.