From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 290811AFF1 for ; Fri, 20 Apr 2018 17:18:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Apr 2018 08:18:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,302,1520924400"; d="scan'208";a="35163686" Received: from kmsmsx155.gar.corp.intel.com ([172.21.73.106]) by orsmga008.jf.intel.com with ESMTP; 20 Apr 2018 08:18:16 -0700 Received: from pgsmsx106.gar.corp.intel.com ([169.254.9.180]) by KMSMSX155.gar.corp.intel.com ([169.254.15.13]) with mapi id 14.03.0319.002; Fri, 20 Apr 2018 23:18:16 +0800 From: "Gujjar, Abhinandan S" To: "Verma, Shally" , "Jacob, Jerin" , "hemant.agrawal@nxp.com" , "akhil.goyal@nxp.com" , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" , "Doherty, Declan" , "Vangati, Narender" , "Rao, Nikhil" , "Eads, Gage" , "Athreya, Narayana Prasad" , "Murthy, Nidadavolu" Thread-Topic: [dpdk-dev] [dpdk-dev, v1, 2/5] eventdev: add crypto adapter implementation Thread-Index: AQHT2KXneTXs6mLSFUWvCrfXah9wJaQJw2/Q Date: Fri, 20 Apr 2018 15:18:14 +0000 Message-ID: <5612CB344B05EE4F95FC5B729939F780706F0637@PGSMSX106.gar.corp.intel.com> References: <1522824999-61614-1-git-send-email-abhinandan.gujjar@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjQzMTY3NmQtNGEyNi00Y2EwLTllMTAtYjk2NDJmNjBjYzEwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InE1REtJc2k5ZXpJR2FoM0tEVW9FNmVvSTMwbWNwWW1tN1wvN1htTHB2ekVJPSJ9 dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [dpdk-dev, v1, 2/5] eventdev: add crypto adapter implementation 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, 20 Apr 2018 15:18:20 -0000 > -----Original Message----- > From: Verma, Shally [mailto:Shally.Verma@cavium.com] > Sent: Friday, April 20, 2018 6:18 PM > To: Gujjar, Abhinandan S ; Jacob, Jerin > ; hemant.agrawal@nxp.com; > akhil.goyal@nxp.com; dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Doherty, Decl= an > ; Vangati, Narender > ; Rao, Nikhil ; Eads, G= age > ; Athreya, Narayana Prasad > ; Murthy, Nidadavolu > > Subject: RE: [dpdk-dev] [dpdk-dev, v1, 2/5] eventdev: add crypto adapter > implementation >=20 > HI, >=20 > >-----Original Message----- > >From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Abhinandan Gujjar > >Sent: 04 April 2018 12:27 > >To: Jacob, Jerin ; > >hemant.agrawal@nxp.com; akhil.goyal@nxp.com; dev@dpdk.org > >Cc: pablo.de.lara.guarch@intel.com; declan.doherty@intel.com; > >narender.vangati@intel.com; abhinandan.gujjar@intel.com; > >nikhil.rao@intel.com; Gage Eads > >Subject: [dpdk-dev] [dpdk-dev, v1, 2/5] eventdev: add crypto adapter > >implementation > > > >Signed-off-by: Abhinandan Gujjar > >Signed-off-by: Nikhil Rao > >Signed-off-by: Gage Eads > >--- > > config/common_base | 1 + > > lib/Makefile | 3 +- > > lib/librte_eventdev/Makefile | 3 + > > lib/librte_eventdev/rte_event_crypto_adapter.c | 1089 > >++++++++++++++++++++++++ lib/librte_eventdev/rte_event_crypto_adapter.h > | 449 ++++++++++ > > lib/librte_eventdev/rte_eventdev_version.map | 12 + > > 6 files changed, 1556 insertions(+), 1 deletion(-) create mode 100644 > >lib/librte_eventdev/rte_event_crypto_adapter.c > > create mode 100644 lib/librte_eventdev/rte_event_crypto_adapter.h > > >=20 > //snip >=20 > >diff --git a/lib/librte_eventdev/rte_event_crypto_adapter.h > >b/lib/librte_eventdev/rte_event_crypto_adapter.h > >new file mode 100644 > >index 0000000..a974464 > >--- /dev/null > >+++ b/lib/librte_eventdev/rte_event_crypto_adapter.h > >@@ -0,0 +1,449 @@ >=20 > //snip >=20 > >+/** > >+ * @warning > >+ * @b EXPERIMENTAL: this API may change without prior notice > >+ * > >+ * Create a new event crypto adapter with the specified identifier. > >+ * This function uses an internal configuration function that creates > >+an event > >+ * port. This default function reconfigures the event device with an > >+ * additional event port and setups up the event port using the > >+port_config > >+ * parameter passed into this function. In case the application needs > >+more > >+ * control in configuration of the service, it should use the > >+ * rte_event_crypto_adapter_create_ext() version. > >+ * > >+ * @param id > >+ * Adapter identifier. > >+ * > >+ * @param cdev_id > >+ * Crypto device identifier. >=20 > [Shally] As I understood, API create crypto adapter on an event device. I= s that > correct? If yes, so, should it be crypto dev id or event device id? [Abhinandan] You are right. The implementation actually uses this variable = as eventdev id. I will fix this in v2. >=20 > Thanks > Shally > >+ * > >+ * @param port_config > >+ * Argument of type *rte_event_port_conf* that is passed to the > >+conf_cb > >+ * function. > >+ * > >+ * @return > >+ * - 0: Success > >+ * - <0: Error code on failure > >+ */ > >+int __rte_experimental > >+rte_event_crypto_adapter_create(uint8_t id, uint8_t cdev_id, > >+ struct rte_event_port_conf *port_config); > >+ > //snip