From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0077.outbound.protection.outlook.com [104.47.36.77]) by dpdk.org (Postfix) with ESMTP id E64EF239 for ; Mon, 7 May 2018 06:58:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pkX4Dsh/d5t42hPMqQoujU2Ax4s4CyjnsP4VFpkKqVg=; b=PqKCT0Y0dlFeOnwHTnhkmNqa1jwNT+tMaO9xR1+pgSuyC/NkFNiC7wTjG5hvXFO4THZ4SGnzD5rBiM2P88dxSgjL16kcK0xhuqf6QxUvpObTb5TtQSSo+jbOwU9xfKdnpeKhz3uqAKqRNY2+8UetTSegUj6S7Fczb0AefmwGfIo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.178.239.6) by BN3PR07MB2513.namprd07.prod.outlook.com (2a01:111:e400:7bbf::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.735.17; Mon, 7 May 2018 04:58:40 +0000 Date: Mon, 7 May 2018 10:28:24 +0530 From: Jerin Jacob To: Abhinandan Gujjar Cc: hemant.agrawal@nxp.com, akhil.goyal@nxp.com, dev@dpdk.org, narender.vangati@intel.com, nikhil.rao@intel.com, gage.eads@intel.com Message-ID: <20180507045823.GA26535@jerin> References: <1525546030-11204-1-git-send-email-abhinandan.gujjar@intel.com> <1525546030-11204-4-git-send-email-abhinandan.gujjar@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525546030-11204-4-git-send-email-abhinandan.gujjar@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [122.178.239.6] X-ClientProxiedBy: MA1PR01CA0075.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::15) To BN3PR07MB2513.namprd07.prod.outlook.com (2a01:111:e400:7bbf::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 3:AaiVx1re5GHQSHxBtQHhufepG1m0a7/ezgw1uyHr4QN7l4Kqmllkry77ZDCERq8wOIMnH3KyB38m9J69Jqzq2iLtAcaOVQQ0/5Ylf98ryvX98b8pvqgX9lw8/GoO2Nj+SgtfrJA51Y+wbwlKJyGL/kI7tCW5CHJMaGVf6mIrrSm9MUnWRmQFqDD1ny7Ve5MiWY+ClR9SQD62f6Sx4amDOjCOREYNIpmyaZbtTULTh7RJdZBVVGAxMPWjZDWZnq0H; 25:NKCLiHMu9zK3Wbr5pG9xWe3WHhdidtXSTDSmJFYi3ujYJnXgHprZK8WPQKbtSb9YgCXBK601Rrsdmd+aJhwr43xfjvZdBoN2D39NCihuhr+egnUmiWznIXdsJUsq3lIx6yrXBS7ycixYBYrCNVYryi10p66qvzfBFNKp0ODZltoK4JUTkklGoiQjLO8PvtcJJJd3flvNd9ZH1jtLek5Z1Xb9dV+tKf0EWteHuSS9UKFbcMH5OLZFeRMiUfJ8sDdMFWta0hJjP/KZvxjS5px4k5UzqbWRLV+m1gnC9mTgPn7krBl6tm4hfkCdvNAOzxrDXdDj21rIXholJd922S0l1Q==; 31:Yw1PgFK8ty4aVrblsDzMBog1DQQ8mmAlf7oa+ZpFoPNJ3U/B+BOUjPLUEj0h2US0LP9EPor463rcQUpmAOsGBZz1wIagBHOWOWmz+uws0SYRLCCXYAWk/rZ5FaxQeC31KRNrlAlPeWfrBGBBApb0Ve8SCGVK2Zkn6UPU+YwjnTHXmRJcTq+BhtRX/5iHDdQxqpAHbDZf9HGakl1mgbUPSVcukemln3H1MOarW0eeMoQ= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:1Bxsc9e9VZnkhL7vK47cQIgkRFFHnXNX+Aqez+2TPHj4OqlovvjzRz46YaFN41byD9sE9veq15GtyqbV0fRHruBpiBEXZvejYsN6mJsWz3sbc66cNSe5jr1o39rsZDtPI3Xblqkhx/p0uRMHZxCDBJwWd8kqschnYCqqeDRBnZstzqnGDRcNtNdQ735Ff4KS8zf1ozcEXyX2w8aSNY0CTQ4jAGEH2LEkfr/7D8H4VvHwmToVPZkMZqdeYuHl0vEDxrDU1m9Sjo7pxQt1y1B5rYqk0FNRU3pnpDdFfa8s1Mi05snxOVdK/t5XJBVVAasmFZ9woBGMKEUVcvViAPwsXFEKnY+KqTo0tvzwgCfj341jqaziwuH3LbSbOVoWtnqwBw04vfa4fKkzi5C6wyr/IYEYuXBNZucoz9cjPD0LPsBvTfd/Cdp+SIR0l6k7vKkRDww53Cg2BTCEBbwngfkbY5XSGe9Fv1/zylXlJW3T1eYoBXxrqok/XnRzIQj1wvD6RPqvw0BqsCmQIKvti/8nilVDxqjOf4FnQMuuCHLGnFGl7vB3D8xjeLMa0NdaIWXKgrZ4ea+DkElzQt+g1j2U61OBbzYLdxM/i4h0vPZssdw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 0 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(149027)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN3PR07MB2513; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 4:Iv0HmqCQfQWWbQRJO1Ws/8eN6ROKzQe+eIK5yux7nY3ARcFKEqbgWa6sWnhdTi2/xnEetoUPTJ48+iP2l0zlLfVpMK8EsuDz2NUSp1wpj1uU+NUTHxaL/UMTmetvWwwCrsXf2Bq3OxE6oI/PiwhvFmmTVINsCQv/fphfu041kBRSdozI9+m++IGWiIYkENBIkLY8fdNVIMMHaHbfpHHnzSYZyQXuY4kIfl6h8JK1Dvj9NYWhMdpxDDmTtevBqhi6rV7pfThExq6xSyuwOsIbLUF6a9Vm+x1xjJhXzUk4Xi5gGtaj8yeo8dFBSDhckmrn8pBGSlDej5M3xWyyRZqZIC+0AvHqVh1/MRlIXoKfu1Y= X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39380400002)(376002)(39850400004)(346002)(189003)(199004)(13464003)(8676002)(6916009)(9686003)(4326008)(476003)(2906002)(23726003)(8936002)(72206003)(8656006)(6246003)(25786009)(53936002)(478600001)(55016002)(6666003)(33716001)(486006)(81166006)(47776003)(386003)(1076002)(33896004)(76176011)(81156014)(66066001)(52116002)(6496006)(26005)(5660300001)(44832011)(16526019)(50466002)(305945005)(186003)(7736002)(16586007)(229853002)(97736004)(58126008)(446003)(11346002)(956004)(3846002)(6116002)(106356001)(316002)(68736007)(42882007)(59450400001)(33656002)(105586002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2513; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2513; 23:e5lR27hi4r4LH53caDP9yW5AqiK4t4LY+SLYsDNbh?= =?us-ascii?Q?ukRSjNkapjgb6wLFo3J6XU8oeCY4RUx5xTiz3MQXrW+VztXmYs3+tN8AfuXx?= =?us-ascii?Q?baQi2bh83UuoYrFHt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7asNDp0iGBVP5eJyMX85ASR8zIIkFTpTt13Eni5rHuTcIgd4L/WuJ2Rk1ywdMNLOniF9yt7n0gl2JXLVX+TX+l6eF/AQyFIMwVy+8fl9Bzoj0uyfoBSU6VdC9A==; 5:RBO2ygysdqhHOxR8Yx8SS3KYjibfsXKsIvYNVFgniJwWBhy1EKdxmFI22Ggc/vpDGouiQeJ7NMwrh1knIxW8Dphe7C/U0rsBOghnKxGYuhBij0Ks+V5VcA7ceGgON1k3wYvo7dL5861JRF4+sQISvGbKGUwPemJx1O4ZMnvw+QE=; 24:POKSpt8xEe1S9yyypcxyuladwoqZhIb57Djs6JPWN7KuepwpfTW0ODugr0tXJhN+mV8h6p7cTrMfF/cidTzFnsnqLotQEelg6gSbDbFgh4M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 7:zjTnPcCJIHeFngLiuNmesR/x0/vnl4ixnAwIGaCslTm9Hpb2qdjWNSGwuMMNUfRmiLEV0lrs+itWOKUQ1HKUtV7u2t+6V8fzCf8FFBZ1vxkOcJwDEJOA2todG4Mlpt+DbPA0jLp+2G9Z5FahXtwJvjB/xty4TdQ7TKOXGY49t2ONZS34cRc2BN7+2MhxCJao7T4/ppz7+mnv/nS55eThUj3dO9cPaHGLREkrlICavUfWihXQb9CkODZ9Atyzc5/9 X-MS-Office365-Filtering-Correlation-Id: bc37c291-67c7-43d9-b19c-08d5b3d73500 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 04:58:40.3715 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc37c291-67c7-43d9-b19c-08d5b3d73500 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2513 Subject: Re: [dpdk-dev] [v3, 3/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: Mon, 07 May 2018 04:58:46 -0000 -----Original Message----- > Date: Sun, 6 May 2018 00:17:08 +0530 > From: Abhinandan Gujjar > To: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, > akhil.goyal@nxp.com, dev@dpdk.org > CC: narender.vangati@intel.com, abhinandan.gujjar@intel.com, > nikhil.rao@intel.com, gage.eads@intel.com > Subject: [v3,3/5] eventdev: add crypto adapter implementation > X-Mailer: git-send-email 1.9.1 > > Event crypto adapter is added to the meson build system > > 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/meson.build | 8 +- > lib/librte_eventdev/rte_event_crypto_adapter.c | 1127 ++++++++++++++++++++++++ > lib/librte_eventdev/rte_eventdev_version.map | 12 + > 6 files changed, 1150 insertions(+), 4 deletions(-) > create mode 100644 lib/librte_eventdev/rte_event_crypto_adapter.c > > diff --git a/config/common_base b/config/common_base > index 03a8688..8420d29 100644 > --- a/config/common_base > +++ b/config/common_base > @@ -577,6 +577,7 @@ CONFIG_RTE_LIBRTE_EVENTDEV_DEBUG=n > CONFIG_RTE_EVENT_MAX_DEVS=16 > CONFIG_RTE_EVENT_MAX_QUEUES_PER_DEV=64 > CONFIG_RTE_EVENT_TIMER_ADAPTER_NUM_MAX=32 > +CONFIG_RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE=32 > > # > # Compile PMD for skeleton event device > diff --git a/lib/Makefile b/lib/Makefile > index 057bf78..efddee0 100644 > --- a/lib/Makefile > +++ b/lib/Makefile > @@ -32,7 +32,8 @@ DEPDIRS-librte_security := librte_eal librte_mempool librte_ring librte_mbuf > DEPDIRS-librte_security += librte_ethdev > DEPDIRS-librte_security += librte_cryptodev > DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += librte_eventdev > -DEPDIRS-librte_eventdev := librte_eal librte_ring librte_ethdev librte_hash librte_mempool librte_timer > +DEPDIRS-librte_eventdev := librte_eal librte_ring librte_ether librte_hash \ This creates build break with parallel build due to unwanted rename of librte_ethdev -> librte_ether > + librte_mempool librte_timer librte_cryptodev > SRCS-y += rte_event_ring.c > SRCS-y += rte_event_eth_rx_adapter.c > SRCS-y += rte_event_timer_adapter.c > +SRCS-y += rte_event_crypto_adapter.c > > # export include files > +/* Macros to check for valid adapter */ > +#define RTE_EVENT_CRYPTO_ADAPTER_ID_VALID_OR_ERR_RET(id, retval) do { \ Internal function(not exposed to public header file), Could be renamed to EVENT_CRYPTO_ADAPTER_ID_VALID_OR_ERR_RET > + > diff --git a/lib/librte_eventdev/rte_eventdev_version.map b/lib/librte_eventdev/rte_eventdev_version.map > index 3ee28f7..2c674f5 100644 > --- a/lib/librte_eventdev/rte_eventdev_version.map > +++ b/lib/librte_eventdev/rte_eventdev_version.map > @@ -97,4 +97,16 @@ EXPERIMENTAL { > rte_event_timer_arm_burst; > rte_event_timer_arm_tmo_tick_burst; > rte_event_timer_cancel_burst; > + rte_event_crypto_adapter_create_ext; extra space. > + rte_event_crypto_adapter_create; > + rte_event_crypto_adapter_free; > + rte_event_crypto_adapter_queue_pair_add; > + rte_event_crypto_adapter_queue_pair_del; > + rte_event_crypto_adapter_start; > + rte_event_crypto_adapter_stop; > + rte_event_crypto_adapter_stats_get; > + rte_event_crypto_adapter_stats_reset; > + rte_event_crypto_adapter_service_id_get; > + rte_event_crypto_adapter_event_port_get; Arrange in alphabetical order. > + > } DPDK_18.05; > -- > 1.9.1 >