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 198B5A00E6 for ; Thu, 13 Jun 2019 14:34:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9DEC21D40F; Thu, 13 Jun 2019 14:34:16 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 98E431D3A2; Thu, 13 Jun 2019 14:34:13 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2019 05:34:12 -0700 X-ExtLoop1: 1 Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga007.fm.intel.com with ESMTP; 13 Jun 2019 05:34:11 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 13 Jun 2019 13:34:10 +0100 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.227]) by irsmsx155.ger.corp.intel.com ([169.254.14.28]) with mapi id 14.03.0415.000; Thu, 13 Jun 2019 13:34:10 +0100 From: "Ananyev, Konstantin" To: "Iremonger, Bernard" , "dev@dpdk.org" , "akhil.goyal@nxp.com" CC: "stable@dpdk.org" Thread-Topic: [PATCH v6 1/2] examples/ipsec-secgw: fix 1st pkt dropped for inline crypto Thread-Index: AQHVIS5t4KxqivZIdUmBrNIOFywO9qaZhfLg Date: Thu, 13 Jun 2019 12:34:09 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725801688E4E2C@IRSMSX104.ger.corp.intel.com> References: <1559819547-20742-1-git-send-email-bernard.iremonger@intel.com> <1560351121-21234-2-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1560351121-21234-2-git-send-email-bernard.iremonger@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzZlYmYwMjItMjRjZC00M2NhLWE4OWMtNDQzZWQ1MDJhZjRkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiS0E4a2FSOG81WlVGV0hYWVlCMEF4MU9PR1k3M0V3cUVqbnd1aCtnMVFod1lpSUtmSnJaYUZnUnZmMG5pQVNIUCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v6 1/2] examples/ipsec-secgw: fix 1st pkt dropped for inline crypto 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" > -----Original Message----- > From: Iremonger, Bernard > Sent: Wednesday, June 12, 2019 3:52 PM > To: dev@dpdk.org; Ananyev, Konstantin ; akh= il.goyal@nxp.com > Cc: Iremonger, Bernard ; stable@dpdk.org > Subject: [PATCH v6 1/2] examples/ipsec-secgw: fix 1st pkt dropped for inl= ine crypto >=20 > Inline crypto installs a flow rule in the NIC. This flow > rule must be installed before the first inbound packet is > received. >=20 > The create_session() function installs the flow rule, > create_session() has been refactored into create_inline_session() > and create_lookaside_session(). The create_inline_session() function > uses the socket_ctx data and is now called at initialisation in > sa_add_rules(). >=20 > The max_session_size() function has been added to calculate memory > requirements. >=20 > The cryprodev_init() function has been refactored to drop calls to > rte_mempool_create() and to drop calculation of memory requirements. >=20 > The main() function has been refactored to call max_session_size() and > to call session_pool_init() and session_priv_pool_init() earlier. > The ports are started now before adding a flow rule in main(). > The sa_init(), sp4_init(), sp6_init() and rt_init() functions are > now called after the ports have been started. >=20 > The rte_ipsec_session_prepare() function is called in fill_ipsec_session(= ) > for inline which is called from the ipsec_sa_init() function. >=20 > Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") > Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application"= ) > Cc: stable@dpdk.org >=20 > Signed-off-by: Bernard Iremonger > --- Acked-by: Konstantin Ananyev Tested-by: Konstantin Ananyev > -- > 2.7.4