From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 006CB4CE4 for ; Fri, 21 Dec 2018 15:54:55 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Dec 2018 06:54:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,381,1539673200"; d="scan'208";a="102463496" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga006.jf.intel.com with ESMTP; 21 Dec 2018 06:54:53 -0800 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.227]) by IRSMSX107.ger.corp.intel.com ([169.254.10.125]) with mapi id 14.03.0415.000; Fri, 21 Dec 2018 14:54:53 +0000 From: "Ananyev, Konstantin" To: Akhil Goyal , "dev@dpdk.org" CC: "Nicolau, Radu" Thread-Topic: [dpdk-dev] [PATCH v4 4/9] examples/ipsec-secgw: fix outbound codepath for single SA Thread-Index: AQHUk8vBXKoaQuApqU61MSlko5DodqWJSoUAgAAGqlA= Date: Fri, 21 Dec 2018 14:54:52 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258010D8BDC65@IRSMSX106.ger.corp.intel.com> References: <1544111691-7481-1-git-send-email-konstantin.ananyev@intel.com> <1544805623-18150-5-git-send-email-konstantin.ananyev@intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODhkM2YyOTktNmNhNC00ZjNiLTgwMzYtMWQwZjMzMjExNGExIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidjBwOFl4WVBsMXl1WlwvdWxEOXpvQTNoak9adGlqc0poc0EzdEhlSlRTbkJvSjhWM083RnVzNUlwWnJqRldvTWsifQ== 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 4/9] examples/ipsec-secgw: fix outbound codepath for single SA 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 14:54:56 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQWtoaWwgR295YWwgW21h aWx0bzpha2hpbC5nb3lhbEBueHAuY29tXQ0KPiBTZW50OiBGcmlkYXksIERlY2VtYmVyIDIxLCAy MDE4IDI6MjYgUE0NCj4gVG86IEFuYW55ZXYsIEtvbnN0YW50aW4gPGtvbnN0YW50aW4uYW5hbnll dkBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmcNCj4gQ2M6IE5pY29sYXUsIFJhZHUgPHJhZHUubmlj b2xhdUBpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2NCA0Lzld IGV4YW1wbGVzL2lwc2VjLXNlY2d3OiBmaXggb3V0Ym91bmQgY29kZXBhdGggZm9yIHNpbmdsZSBT QQ0KPiANCj4gDQo+IA0KPiBPbiAxMi8xNC8yMDE4IDEwOjEwIFBNLCBLb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