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 B6BA61BE26 for ; Fri, 21 Dec 2018 13:41:33 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Dec 2018 04:41:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,381,1539673200"; d="scan'208";a="109136365" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga007.fm.intel.com with ESMTP; 21 Dec 2018 04:41:31 -0800 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.227]) by IRSMSX104.ger.corp.intel.com ([169.254.5.61]) with mapi id 14.03.0415.000; Fri, 21 Dec 2018 12:41:30 +0000 From: "Ananyev, Konstantin" To: Akhil Goyal , "dev@dpdk.org" CC: Thomas Monjalon , "Awal, Mohammad Abdul" Thread-Topic: [dpdk-dev] [PATCH v4 04/10] lib: introduce ipsec library Thread-Index: AQHUk8ldEHLuRhaSk02pTIMUWJzJ0qWF/3mAgAGispCAAX3FgIAAC0vg Date: Fri, 21 Dec 2018 12:41:29 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258010D8BDB42@IRSMSX106.ger.corp.intel.com> References: <1544110714-4514-2-git-send-email-konstantin.ananyev@intel.com> <1544804589-10338-4-git-send-email-konstantin.ananyev@intel.com> <82f62109-a584-13e9-12ec-c9984a60567a@nxp.com> <2601191342CEEE43887BDE71AB977258010D8BD421@IRSMSX106.ger.corp.intel.com> <2be6ac83-8e6b-3372-ee8d-5d8329e10f33@nxp.com> In-Reply-To: <2be6ac83-8e6b-3372-ee8d-5d8329e10f33@nxp.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzZmMGM0ZDUtYmJhNi00MjBiLThmMjgtNTdmMjI2YTFkYjgzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoienE0VHJaalFPdkJCemVoNW9ORkcwVlJvUU5raXU4YjBMMnhESzhEQTROeGVXZUUySXd3eFJEbVQ4Wm1XY2NpaCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 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 v4 04/10] lib: introduce ipsec library 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: Fri, 21 Dec 2018 12:41:34 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQWtoaWwgR295YWwgW21h aWx0bzpha2hpbC5nb3lhbEBueHAuY29tXQ0KPiBTZW50OiBGcmlkYXksIERlY2VtYmVyIDIxLCAy MDE4IDExOjUzIEFNDQo+IFRvOiBBbmFueWV2LCBLb25zdGFudGluIDxrb25zdGFudGluLmFuYW55 ZXZAaW50ZWwuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiBUaG9tYXMgTW9uamFsb24gPHRob21h c0Btb25qYWxvbi5uZXQ+OyBBd2FsLCBNb2hhbW1hZCBBYmR1bCA8bW9o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