From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 174241B30D for ; Mon, 29 Jan 2018 07:37:42 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2018 22:37:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,429,1511856000"; d="scan'208";a="23036899" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 28 Jan 2018 22:37:42 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 28 Jan 2018 22:37:41 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 28 Jan 2018 22:37:40 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.130]) with mapi id 14.03.0319.002; Mon, 29 Jan 2018 14:37:39 +0800 From: "Tan, Jianfeng" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Richardson, Bruce" , "Ananyev, Konstantin" , "thomas@monjalon.net" Thread-Topic: [PATCH v6 1/2] eal: add channel for multi-process communication Thread-Index: AQHTlldLYxOWWSngCUCkgJ0ZloR3kaOFbUGAgAT8UrA= Date: Mon, 29 Jan 2018 06:37:37 +0000 Message-ID: References: <1512067450-59203-1-git-send-email-jianfeng.tan@intel.com> <1516938082-27852-1-git-send-email-jianfeng.tan@intel.com> <1516938082-27852-2-git-send-email-jianfeng.tan@intel.com> In-Reply-To: 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="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v6 1/2] eal: add channel for multi-process communication X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 06:37:43 -0000 SGkgQW5hdG9seSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBCdXJh a292LCBBbmF0b2x5DQo+IFNlbnQ6IEZyaWRheSwgSmFudWFyeSAyNiwgMjAxOCA2OjI2IFBNDQo+ IFRvOiBUYW4sIEppYW5mZW5nOyBkZXZAZHBkay5vcmcNCj4gQ2M6IFJpY2hhcmRzb24sIEJydWNl OyBBbmFueWV2LCBLb25zdGFudGluOyB0aG9tYXNAbW9uamFsb24ubmV0DQo+IFN1YmplY3Q6IFJl OiBbUEFUQ0ggdjYgMS8yXSBlYWw6IGFkZCBjaGFubmVsIGZvciBtdWx0aS1wcm9jZXNzDQo+IGNv bW11bmljYXRpb24NCj4gDQo+IE9uIDI2LUphbi0xOCAzOjQxIEFNLCBKaWFuZmVuZyBUYW4gd3Jv dGU6DQo+ID4gUHJldmlvdWx5LCB0aGVyZSBhcmUgdGhyZWUgY2hhbm5lbHMgZm9yIG11bHRpLXBy b2Nlc3MNCj4gPiAoaS5lLiwgcHJpbWFyeS9zZWNvbmRhcnkpIGNvbW11bmljYXRpb24uDQo+ID4g ICAgMS4gQ29uZmlnLWZpbGUgYmFzZWQgY2hhbm5lbCwgaW4gd2hpY2gsIHRoZSBwcmltYXJ5IHBy b2Nlc3Mgd3JpdGVzDQo+ID4gICAgICAgaW5mbyBpbnRvIGEgcHJlLWRlZmluZWQgY29uZmlnIGZp bGUsIGFuZCB0aGUgc2Vjb25kY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