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 505826A5B for ; Tue, 7 Jun 2016 14:52:00 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 07 Jun 2016 05:51:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,433,1459839600"; d="scan'208";a="982524852" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga001.fm.intel.com with ESMTP; 07 Jun 2016 05:51:54 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.183]) by IRSMSX153.ger.corp.intel.com ([169.254.9.105]) with mapi id 14.03.0248.002; Tue, 7 Jun 2016 13:50:38 +0100 From: "De Lara Guarch, Pablo" To: "Gonzalez Monroy, Sergio" , "dev@dpdk.org" CC: "Mcnamara, John" Thread-Topic: [dpdk-dev] [PATCH v2 4/9] examples/ipsec-secgw: rework ipsec execution loop Thread-Index: AQHRsQLgwRpIOXyamU6S1GBs9dWzjp/eDmRQ Date: Tue, 7 Jun 2016 12:50:38 +0000 Message-ID: References: <1462552302-5852-1-git-send-email-sergio.gonzalez.monroy@intel.com> <1463575330-8467-1-git-send-email-sergio.gonzalez.monroy@intel.com> <1463575330-8467-5-git-send-email-sergio.gonzalez.monroy@intel.com> In-Reply-To: <1463575330-8467-5-git-send-email-sergio.gonzalez.monroy@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGQwYTBiMTItYWM4NS00YWJhLWFhZDQtMmYwY2NiNzhiZGI0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Im53UXNQZ2g0NUR1Qjg2dGU2YldEaFBxNnpmOTR1eEFSUE1RZ3hNZEpsR2c9In0= x-ctpclassification: CTP_IC 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 v2 4/9] examples/ipsec-secgw: rework ipsec execution loop X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2016 12:52:00 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Sergio Gonzalez > Monroy > Sent: Wednesday, May 18, 2016 1:42 PM > To: dev@dpdk.org > Cc: Mcnamara, John > Subject: [dpdk-dev] [PATCH v2 4/9] examples/ipsec-secgw: rework ipsec > execution loop >=20 > Rework implementation moving from function pointers approach, where > each > function implements very specific functionality, to a generic function > approach. >=20 > Signed-off-by: Sergio Gonzalez Monroy > --- > examples/ipsec-secgw/esp.c | 8 +- > examples/ipsec-secgw/esp.h | 9 +- > examples/ipsec-secgw/ipsec.c | 36 ++++-- > examples/ipsec-secgw/ipsec.h | 2 - > examples/ipsec-secgw/sa.c | 272 ++++++++++++++++++-------------------= ------ > 5 files changed, 145 insertions(+), 182 deletions(-) >=20 > diff --git a/examples/ipsec-secgw/esp.c b/examples/ipsec-secgw/esp.c > index 7dce78c..b423080 100644 > --- a/examples/ipsec-secgw/esp.c > +++ b/examples/ipsec-secgw/esp.c > @@ -69,7 +69,7 @@ random_iv_u64(uint64_t *buf, uint16_t n) >=20 > /* IPv4 Tunnel */ You removed this comment in the header file, so probably you should do the = same here? > int > -esp4_tunnel_inbound_pre_crypto(struct rte_mbuf *m, struct ipsec_sa *sa, > +esp_inbound(struct rte_mbuf *m, struct ipsec_sa *sa, > struct rte_crypto_op *cop) > { > int32_t payload_len; > @@ -117,7 +117,7 @@ esp4_tunnel_inbound_pre_crypto(struct rte_mbuf > *m, struct ipsec_sa *sa, > }