From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 25573C3AC for ; Wed, 17 Jun 2015 07:49:23 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 16 Jun 2015 22:49:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,630,1427785200"; d="scan'208";a="589332509" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by orsmga003.jf.intel.com with ESMTP; 16 Jun 2015 22:49:21 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 17 Jun 2015 13:49:20 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.129]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.46]) with mapi id 14.03.0224.002; Wed, 17 Jun 2015 13:49:19 +0800 From: "Zhang, Helin" To: Wenfeng Liu Thread-Topic: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create() Thread-Index: AQHQpyED7TxdXZ0E4EyEmKchsiCJ7J2wEOnwgAAfjWCAAAPaAA== Date: Wed, 17 Jun 2015 05:49:19 +0000 Message-ID: References: <1434341253-3227-1-git-send-email-liuwf@arraynetworks.com.cn> <002401d0a8c0$8b871f60$a2955e20$@com.cn> In-Reply-To: <002401d0a8c0$8b871f60$a2955e20$@com.cn> 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="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create() 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, 17 Jun 2015 05:49:24 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV2VuZmVuZyBMaXUgW21h aWx0bzpsaXV3ZkBhcnJheW5ldHdvcmtzLmNvbS5jbl0NCj4gU2VudDogV2VkbmVzZGF5LCBKdW5l IDE3LCAyMDE1IDE6NDQgUE0NCj4gVG86IFpoYW5nLCBIZWxpbg0KPiBDYzogZGV2QGRwZGsub3Jn DQo+IFN1YmplY3Q6ILTwuLQ6IFtQQVRDSF0ga25pOiBQYXNzaW5nIHRhc2tfcGlkX3ZucihjdXJy ZW50KSB0bw0KPiBnZXRfbmV0X25zX2J5X3BpZCgpIGluIGtuaV9pb2N0bF9jcmVhdGUoKQ0KPiAN Cj4gSGkgSGVsaW4sDQo+IA0KPiBTaW5jZSBJIGRvbqGvdCBoYXZlIGFueSAyLjYuMzMgbWFjaGlu ZSBvbiBoYW5kIHJpZ2h0IG5vdywgSSB0cmllZCB0byBjb21waWxlIHRoaXMNCj4gcGF0Y2ggb24g Mi42LjMyLCBhbmQgaXQgc3VjY2VlZC4NCj4gSSBjYW4ndCB2ZXJpZnkgdGhpcyBtb2RpZmljYXRp b24gaW4gZG9ja2VyIHNpbmNlIGl0IG9ubHkgc3VwcG9ydCBMaW51eCBrZXJuZWwgPj0gMy4xMC4N Ck9LLCBJIHRoaW5rIGl0IHNob3VsZCBiZSBlbm91Z2guIFRoYW5rcyENCg0KLSBIZWxpbg0KDQo+ IA0KPiBUaGFua3MsDQo+IGxpdXdmDQo+IA0KPiAtLS0tLdPKvP7Urbz+LS0tLS0NCj4gt6K8/sjL OiBaaGFuZywgSGVsaW4gW21haWx0bzpoZWxpbi56aGFuZ0BpbnRlbC5jb21dDQo+ILeiy83Ksbzk OiAyMDE1xOo21MIxN8jVIDExOjU5DQo+IMrVvP7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