From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 222EBA0613 for ; Tue, 24 Sep 2019 13:36:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 454892C52; Tue, 24 Sep 2019 13:36:35 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 701FD2C4F for ; Tue, 24 Sep 2019 13:36:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2019 04:36:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,543,1559545200"; d="scan'208";a="200877239" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by orsmga002.jf.intel.com with ESMTP; 24 Sep 2019 04:36:30 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.164]) by IRSMSX104.ger.corp.intel.com ([169.254.5.103]) with mapi id 14.03.0439.000; Tue, 24 Sep 2019 12:36:29 +0100 From: "Ananyev, Konstantin" To: Akhil Goyal , "anoobj@marvell.com" , "Nicolau, Radu" CC: Hemant Agrawal , Vakul Garg , "dev@dpdk.org" Thread-Topic: [PATCH 03/20] security: add hfn override option in PDCP Thread-Index: AQHVbv9FQ4N1qGjad0m1aHjbuwqKzac6uoLw Date: Tue, 24 Sep 2019 11:36:29 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725801919699E6@irsmsx105.ger.corp.intel.com> References: <20190902121734.926-1-akhil.goyal@nxp.com> <20190902121734.926-4-akhil.goyal@nxp.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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDBlODMyMGItMzg3NC00YjA4LWIxYTYtMjBiY2IyNmI2M2E2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWjBMKzBCS1RPQXlyN1I4OWh3MDBXTVFBWVZvXC9SUXNia1NKZFU4QkxLeEtOSk9sSWNYeFA0VW1tUjl0V1l4ZkgifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 03/20] security: add hfn override option in PDCP 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" > > HFN can be given as a per packet value also. > > As we do not have IV in case of PDCP, and HFN is > > used to generate IV. IV field can be used to get the > > per packet HFN while enq/deq > > If hfn_ovrd field in pdcp_xform is set, > > application is expected to set the per packet HFN > > in place of IV. Driver will extract the HFN and perform > > operations accordingly. > > > > Signed-off-by: Akhil Goyal > > --- > > lib/librte_security/rte_security.h | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/lib/librte_security/rte_security.h > > b/lib/librte_security/rte_security.h > > index 96806e3a2..4452545fe 100644 > > --- a/lib/librte_security/rte_security.h > > +++ b/lib/librte_security/rte_security.h > > @@ -1,5 +1,5 @@ > > /* SPDX-License-Identifier: BSD-3-Clause > > - * Copyright 2017 NXP. > > + * Copyright 2017,2019 NXP > > * Copyright(c) 2017 Intel Corporation. > > */ > > > > @@ -270,6 +270,8 @@ struct rte_security_pdcp_xform { > > uint32_t hfn; > > /** HFN Threshold for key renegotiation */ > > uint32_t hfn_threshold; > > + /** Enable per packet HFN override */ > > + uint32_t hfn_ovrd; > > }; > > > > /** > > -- Acked-by: Konstantin Ananyev > > 2.17.1