From patchwork Wed Nov 5 09:00:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Badicioiu X-Patchwork-Id: 40167 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 649F3240A6 for ; Wed, 5 Nov 2014 09:02:56 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id mc6sf198649lab.3 for ; Wed, 05 Nov 2014 01:02:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=e1WRIlqMOZpIEGfGEMjBnLmBYBsU+7tUpQFAEAsgwVE=; b=l0qb2nolNgK3fxKCEEvaEc6UkKbxRUBc4pQZnYEe6fg7/dKdehr9GLYBSzH6jEdvpC NxoPvVOwFSRMCVElBzleMmVmnA3l6XFxoSY8fMVcgzdsI8ZEO8yHl8Bcwi4ASCzffRPh cgONUylxFDpChyJnr3b3JyQ8TlIIjllVC0sAk9Mo6m7JRe0KdpkXZA+WSuz9SjD+vKGS EoCijRRV5Wlk/T8xKR1B/WYOIFkaNSaol1007+KhrR/xDEABGZ7QE7Wn1vOe0ImJQ0xS wJnqZLlKGzAoKA2gCWPSeIeiRJKW4fkYtWymHHH+EmDcnsc4C/Xs1CyyRzqZ31MELDuj vYBg== X-Gm-Message-State: ALoCoQmSBibUD48Vd7x6feBqIeUux+8zRQ1zJ3gk7uWyxNuc5mUFO3JCnVNcRhWmDIeBa4vi56Qg X-Received: by 10.194.103.233 with SMTP id fz9mr117808wjb.5.1415178175027; Wed, 05 Nov 2014 01:02:55 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.168 with SMTP id a8ls921808lab.55.gmail; Wed, 05 Nov 2014 01:02:54 -0800 (PST) X-Received: by 10.112.45.228 with SMTP id q4mr66687746lbm.35.1415178174860; Wed, 05 Nov 2014 01:02:54 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id l10si5090361lbd.29.2014.11.05.01.02.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Nov 2014 01:02:54 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id n15so254193lbi.32 for ; Wed, 05 Nov 2014 01:02:54 -0800 (PST) X-Received: by 10.152.120.199 with SMTP id le7mr42899399lab.67.1415178174380; Wed, 05 Nov 2014 01:02:54 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp252176lbc; Wed, 5 Nov 2014 01:02:53 -0800 (PST) X-Received: by 10.140.29.226 with SMTP id b89mr42625591qgb.94.1415178173052; Wed, 05 Nov 2014 01:02:53 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id mi10si5281802qcb.20.2014.11.05.01.02.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 05 Nov 2014 01:02:53 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XlwUL-0007dA-K6; Wed, 05 Nov 2014 09:02:49 +0000 Received: from mail-bl2on0055.outbound.protection.outlook.com ([65.55.169.55] helo=na01-bl2-obe.outbound.protection.outlook.com) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XlwUF-0007d5-5o for lng-odp@lists.linaro.org; Wed, 05 Nov 2014 09:02:43 +0000 Received: from DM2PR03CA0004.namprd03.prod.outlook.com (10.141.96.14) by BY2PR03MB1014.namprd03.prod.outlook.com (10.242.238.24) with Microsoft SMTP Server (TLS) id 15.1.11.14; Wed, 5 Nov 2014 09:02:35 +0000 Received: from BN1BFFO11FD050.protection.gbl (2a01:111:f400:7c10::1:150) by DM2PR03CA0004.outlook.office365.com (2a01:111:e400:2428::14) with Microsoft SMTP Server (TLS) id 15.1.16.15 via Frontend Transport; Wed, 5 Nov 2014 09:02:35 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD050.mail.protection.outlook.com (10.58.145.5) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Wed, 5 Nov 2014 09:02:35 +0000 Received: from fsr-fed1364-15.ea.freescale.net (fsr-fed1364-15.ea.freescale.net [10.171.81.144]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id sA592WEj007738; Wed, 5 Nov 2014 02:02:33 -0700 From: To: Date: Wed, 5 Nov 2014 11:00:21 +0200 Message-ID: <1415178021-13585-1-git-send-email-alexandru.badicioiu@linaro.org> X-Mailer: git-send-email 1.7.3.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130596517557670031; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(448002)(199003)(189002)(106466001)(47776003)(64706001)(120916001)(62966003)(93916002)(86152002)(87286001)(99396003)(31966008)(88136002)(81156004)(20776003)(50226001)(68736004)(69596002)(4396001)(104166001)(95666004)(104016003)(86362001)(92566001)(6806004)(19580395003)(19580405001)(107046002)(2351001)(44976005)(50986999)(36756003)(102836001)(97736003)(26826002)(46102003)(85326001)(92726001)(229853001)(77156002)(110136001)(89996001)(87936001)(48376002)(33646002)(50466002)(21056001)(84676001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB1014; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB1014; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0386B406AA Received-SPF: PermError (protection.outlook.com: domain of linaro.org used an invalid SPF mechanism) X-Topics: crypto patch Subject: [lng-odp] [PATCH v2 1/1] linux-generic : crypto X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alexandru.badicioiu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Alexandru Badicioiu Add missing API functions to crypto implementation. Required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 1475437..596c717 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -467,3 +468,24 @@ odp_crypto_get_ses_create_compl_session(odp_buffer_t completion_event, result = odp_buffer_addr(completion_event); *session = result->session; } + +void +odp_crypto_set_operation_compl_ctx(odp_buffer_t completion_event ODP_UNUSED, + void *ctx ODP_UNUSED) +{ + ODP_UNIMPLEMENTED(); +} + +void +*odp_crypto_get_operation_compl_ctx(odp_buffer_t completion_event ODP_UNUSED) +{ + ODP_UNIMPLEMENTED(); + return NULL; +} + +odp_packet_t +odp_crypto_get_operation_compl_packet(odp_buffer_t completion_event ODP_UNUSED) +{ + ODP_UNIMPLEMENTED(); + return ODP_PACKET_INVALID; +}