From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 65D3E2965; Sat, 30 Mar 2019 12:22:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Mar 2019 04:22:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,288,1549958400"; d="scan'208";a="333440051" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga005.fm.intel.com with ESMTP; 30 Mar 2019 04:22:29 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX151.ger.corp.intel.com ([169.254.4.91]) with mapi id 14.03.0415.000; Sat, 30 Mar 2019 11:22:28 +0000 From: "Ananyev, Konstantin" To: "Ananyev, Konstantin" , Akhil Goyal , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix SPD no-match is misinterpreted Thread-Index: AQHU5WR0j0FJr5hzE0meqNlext9dx6YicJsAgAB33MCAASFHYA== Date: Sat, 30 Mar 2019 11:22:27 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258013656229A@irsmsx105.ger.corp.intel.com> References: <20190328124733.25580-1-konstantin.ananyev@intel.com> <2601191342CEEE43887BDE71AB9772580136561F21@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772580136561F21@irsmsx105.ger.corp.intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWE4YzU5YzItMzFlZC00YjE5LTk4ZjItNGMxZWVjZDc4MWI0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiY2FhN0tXZVdoWXgwU2ZpdmIyem81Mlc1Qnk1Nnk2bjFhR0VGellRWnhhOWJWUys2SXlnRit3M0tHWlFYWm84aCJ9 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] examples/ipsec-secgw: fix SPD no-match is misinterpreted 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: Sat, 30 Mar 2019 11:22:32 -0000 DQo+IEhpIEFraGlsLA0KPiANCj4gPg0KPiA+IE9uIDMvMjgvMjAxOSA2OjE3IFBNLCBLb25zdGFu dGluIEFuYW55ZXYgd3JvdGU6DQo+ID4gPiBhY2xfY2xhc3NpZnkoKSByZXR1cm5zIHplcm8gdmFs dWUgd2hlbiBubyBtYXRjaGluZyBydWxlIHdhcyBmb3VuZC4NCj4gPiA+IEN1cnJlbnRseSBpcHNl Yy1zZWNndyB0cmVhdHMgaXQgYXMgYSB2YWxpZCBTUEkgdmFsdWUsIHRob3VnaCBpdCBoYXMNCj4g PiA+IHRvIGRpc2NhcmQgc3VjaCBwYWNrZXRzLg0KPiA+ID4gRXJyb3IgY291bGQgYmUgZWFzaWx5 IG9ic2VydmVkIGJ5IHNlbmRpbmcgb3V0Ym91bmQgdW5tYXRjaGVkIHBhY2tldHM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PiAtCQkJcnVsZV9pcHY2LT5kYXRhLnVzZXJkYXRhID0NCj4gPiA+ IC0JCQkJUFJPVEVDVChhdG9pKHRva2Vuc1t0aV0pKTsNCj4gPiA+ICsJCQl0diA9IGF0b2kodG9r ZW5zW3RpXSk7DQo+ID4gPiArCQkJQVBQX0NIRUNLKHR2ICE9IERJU0NBUkQgJiYgdHYgIT0gQllQ QVNTLCBzdGF0dXMsDQo+ID4gPiArCQkJCSJpbnZhbGlkIFNQSTogJXMiLCB0b2tlbnNbdGldKTsN Cj4gPiA+ICsJCQlpZiAoc3RhdHVzLT5zdGF0dXMgPCAwKQ0KPiA+ID4gKwkJCQlyZXR1cm47DQo+ ID4gPiArCQkJcnVsZV9pcHY2LT5kYXRhLnVzZXJkYXRhID0gdHY7DQo+ID4gPg0KPiA+ID4gICAJ CQlwcm90ZWN0X3AgPSAxOw0KPiA+ID4gICAJCQljb250aW51ZTsNCj4gPiA+IEBAIC02MzcsNyAr NjQyLDcgQEAgc3A2X3NwaV9wcmVzZW50KHVpbnQzMl90IHNwaSwgaW50IGluYm91bmQpDQo+ID4g PiAgIAl9DQo+ID4gPg0KPiA+ID4gICAJZm9yIChpID0gMDsgaSAhPSBudW07IGkrKykgew0KPiA+ ID4gLQkJaWYgKGFjcltpXS5kYXRhLnVzZXJkYXRhID09IFBST1RFQ1Qoc3BpKSkNCj4gPiA+ICsJ CWlmIChhY3JbaV0uZGF0YS51c2VyZGF0YSA9PSBzcGkpDQo+ID4gPiAgIAkJCXJldHVybiBpOw0K PiA+ID4gICAJfQ0KPiA+ID4NCg0K From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 36A30A05D3 for ; Sat, 30 Mar 2019 12:22:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C1BDC2C57; Sat, 30 Mar 2019 12:22:32 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 65D3E2965; Sat, 30 Mar 2019 12:22:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Mar 2019 04:22:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,288,1549958400"; d="scan'208";a="333440051" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga005.fm.intel.com with ESMTP; 30 Mar 2019 04:22:29 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX151.ger.corp.intel.com ([169.254.4.91]) with mapi id 14.03.0415.000; Sat, 30 Mar 2019 11:22:28 +0000 From: "Ananyev, Konstantin" To: "Ananyev, Konstantin" , Akhil Goyal , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix SPD no-match is misinterpreted Thread-Index: AQHU5WR0j0FJr5hzE0meqNlext9dx6YicJsAgAB33MCAASFHYA== Date: Sat, 30 Mar 2019 11:22:27 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258013656229A@irsmsx105.ger.corp.intel.com> References: <20190328124733.25580-1-konstantin.ananyev@intel.com> <2601191342CEEE43887BDE71AB9772580136561F21@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772580136561F21@irsmsx105.ger.corp.intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWE4YzU5YzItMzFlZC00YjE5LTk4ZjItNGMxZWVjZDc4MWI0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiY2FhN0tXZVdoWXgwU2ZpdmIyem81Mlc1Qnk1Nnk2bjFhR0VGellRWnhhOWJWUys2SXlnRit3M0tHWlFYWm84aCJ9 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] examples/ipsec-secgw: fix SPD no-match is misinterpreted 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190330112227.gQ1CHtnnwBbZ0A9YtQgiMpy9rm8F8oHaHFrE8orwv8A@z> DQo+IEhpIEFraGlsLA0KPiANCj4gPg0KPiA+IE9uIDMvMjgvMjAxOSA2OjE3IFBNLCBLb25zdGFu dGluIEFuYW55ZXYgd3JvdGU6DQo+ID4gPiBhY2xfY2xhc3NpZnkoKSByZXR1cm5zIHplcm8gdmFs dWUgd2hlbiBubyBtYXRjaGluZyBydWxlIHdhcyBmb3VuZC4NCj4gPiA+IEN1cnJlbnRseSBpcHNl Yy1zZWNndyB0cmVhdHMgaXQgYXMgYSB2YWxpZCBTUEkgdmFsdWUsIHRob3VnaCBpdCBoYXMNCj4g PiA+IHRvIGRpc2NhcmQgc3VjaCBwYWNrZXRzLg0KPiA+ID4gRXJyb3IgY291bGQgYmUgZWFzaWx5 IG9ic2VydmVkIGJ5IHNlbmRpbmcgb3V0Ym91bmQgdW5tYXRja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