From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D1D5512001 for ; Thu, 25 Jan 2018 13:19:27 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 04:19:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,412,1511856000"; d="scan'208";a="29394211" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga002.jf.intel.com with ESMTP; 25 Jan 2018 04:19:25 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.236]) by IRSMSX106.ger.corp.intel.com ([169.254.8.36]) with mapi id 14.03.0319.002; Thu, 25 Jan 2018 12:19:24 +0000 From: "Ananyev, Konstantin" To: "Burakov, Anatoly" , "Tan, Jianfeng" , "dev@dpdk.org" CC: "Richardson, Bruce" , "thomas@monjalon.net" Thread-Topic: [PATCH v3 2/3] eal: add synchronous multi-process communication Thread-Index: AQHTlZMKKt1DyGncUkKAJV30FjW936OEfPUAgAADhhA= Date: Thu, 25 Jan 2018 12:19:23 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258862836A2@irsmsx105.ger.corp.intel.com> References: <1512067450-59203-1-git-send-email-jianfeng.tan@intel.com> <1516853783-108023-1-git-send-email-jianfeng.tan@intel.com> <1516853783-108023-3-git-send-email-jianfeng.tan@intel.com> <93ea032e-e2da-f087-567a-2397fad7ff02@intel.com> In-Reply-To: <93ea032e-e2da-f087-567a-2397fad7ff02@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGIzYjA3NWMtNDYwZC00ZDdiLWFhYzAtZWExM2M0Yjc2YzUyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkFGaWRLTjFySmpIZmpnYVhEdEhOU1ZRY0lETFVaUkVYY09zbUtrK0ZzMnM9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 2/3] eal: add synchronous 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: Thu, 25 Jan 2018 12:19:28 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnVyYWtvdiwgQW5hdG9s eQ0KPiBTZW50OiBUaHVyc2RheSwgSmFudWFyeSAyNSwgMjAxOCAxMjowMCBQTQ0KPiBUbzogVGFu LCBKaWFuZmVuZyA8amlhbmZlbmcudGFuQGludGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzog UmljaGFyZHNvbiwgQnJ1Y2UgPGJydWNlLnJpY2hhcmRzb25AaW50ZWwuY29tPjsgQW5hbnlldiwg S29uc3RhbnRpbiA8a29uc3RhbnRpbi5hbmFueWV2QGludGVsLmNvbT47IHRob21hc0Btb25qYWxv bi5uZXQNCj4gU3ViamVjdDogUmU6IFtQQVRDSCB2MyAyLzNdIGVhbDogYWRkIHN5bmNocm9ub3Vz IG11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