From patchwork Fri Oct 31 12:07:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Badicioiu X-Patchwork-Id: 39879 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A8E00202FE for ; Fri, 31 Oct 2014 12:09:17 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id c41sf630203eek.4 for ; Fri, 31 Oct 2014 05:09:16 -0700 (PDT) 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=5DuPZDgHqAGb8/ZZVutR4/dKb9XRqefrMvBdhxYxDmQ=; b=hpY+RW3fpoXSe0F2C8ec0FS6eWqYrbNXlrAQk6rIrBZcBap2BcL9owurJDJudPHJyx uSLO26Un6DJCOEKoYJ/In3JdEPeVCxbMUv2wlTqv9Q/n8luJch1WQduceC+9N2GFXd0a CztQIZZWH9rlBrzihE7PUXoajWP47F/nZMcz799X6kOPL1lePh6tUHmuB/WDhEhGyS9V jFQh532yx48tv4dx0XJXvh2jYy0VKBvrt7LPPeVw+3yavgzJ0HHOJqdcYWwWBov1M7Yv xL4ZU/aDgnM5NK4B0hFcEydNUBRm2giPlTFdTY4chPyfIoKkE3gcOi6AqR4KrAX7alWP C+Tg== X-Gm-Message-State: ALoCoQkDtcW2gZ0bpniNJmu1zVcdfS2wQBq4kM1FYrfJ5HjfY9LffxshOxkPLDoXeeikaqIWd7FG X-Received: by 10.112.89.195 with SMTP id bq3mr402858lbb.9.1414757356824; Fri, 31 Oct 2014 05:09:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.167 with SMTP id kr7ls436589lac.94.gmail; Fri, 31 Oct 2014 05:09:16 -0700 (PDT) X-Received: by 10.152.19.133 with SMTP id f5mr25258729lae.87.1414757356683; Fri, 31 Oct 2014 05:09:16 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id n1si16425138lbc.10.2014.10.31.05.09.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 05:09:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id 10so6023489lbg.1 for ; Fri, 31 Oct 2014 05:09:16 -0700 (PDT) X-Received: by 10.112.77.74 with SMTP id q10mr25525028lbw.66.1414757356507; Fri, 31 Oct 2014 05:09:16 -0700 (PDT) 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.84.229 with SMTP id c5csp190603lbz; Fri, 31 Oct 2014 05:09:14 -0700 (PDT) X-Received: by 10.140.35.228 with SMTP id n91mr34856689qgn.9.1414757354293; Fri, 31 Oct 2014 05:09:14 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id w6si16779075qax.23.2014.10.31.05.09.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 Oct 2014 05:09:14 -0700 (PDT) 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 1XkB0y-0004zO-Fr; Fri, 31 Oct 2014 12:09:12 +0000 Received: from mail-bl2on0064.outbound.protection.outlook.com ([65.55.169.64] helo=na01-bl2-obe.outbound.protection.outlook.com) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XkB0s-0004xC-13 for lng-odp@lists.linaro.org; Fri, 31 Oct 2014 12:09:06 +0000 Received: from BY2PR03CA038.namprd03.prod.outlook.com (10.141.249.11) by BL2PR03MB1009.namprd03.prod.outlook.com (10.141.182.147) with Microsoft SMTP Server (TLS) id 15.1.6.9; Fri, 31 Oct 2014 12:08:58 +0000 Received: from BY2FFO11FD016.protection.gbl (2a01:111:f400:7c0c::136) by BY2PR03CA038.outlook.office365.com (2a01:111:e400:2c5d::11) with Microsoft SMTP Server (TLS) id 15.1.11.14 via Frontend Transport; Fri, 31 Oct 2014 12:08:58 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD016.mail.protection.outlook.com (10.1.14.148) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Fri, 31 Oct 2014 12:08:57 +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 s9VC8uLd019797; Fri, 31 Oct 2014 05:08:56 -0700 From: To: Date: Fri, 31 Oct 2014 14:07:00 +0200 Message-ID: <1414757220-32274-1-git-send-email-alexandru.badicioiu@linaro.org> X-Mailer: git-send-email 1.7.3.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130592309377446509; (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)(189002)(199003)(104166001)(69596002)(4396001)(86362001)(33646002)(50466002)(48376002)(19580405001)(93916002)(19580395003)(110136001)(102836001)(68736004)(92566001)(86152002)(80022003)(6806004)(20776003)(97736003)(46102003)(50226001)(44976005)(31966008)(84676001)(85326001)(50986999)(104016003)(21056001)(2351001)(62966002)(106466001)(107046002)(120916001)(99396003)(87936001)(95666004)(81156004)(64706001)(88136002)(36756003)(85852003)(76482002)(92726001)(89996001)(26826002)(87286001)(47776003)(85306004)(229853001)(77156001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB1009; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB1009; X-Forefront-PRVS: 03818C953D Received-SPF: PermError (protection.outlook.com: domain of linaro.org used an invalid SPF mechanism) X-Topics: crypto patch Subject: [lng-odp] [PATCH v1/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.170 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 | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 1475437..b9dd3e7 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,28 @@ 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, + void *ctx) +{ + (void)completion_event; + (void)ctx; + ODP_UNIMPLEMENTED(); +} + +void +*odp_crypto_get_operation_compl_ctx(odp_buffer_t completion_event) +{ + (void)completion_event; + ODP_UNIMPLEMENTED(); + return NULL; +} + +odp_packet_t +odp_crypto_get_operation_compl_packet(odp_buffer_t completion_event) +{ + (void)completion_event; + ODP_UNIMPLEMENTED(); + return ODP_PACKET_INVALID; +}