From patchwork Fri Oct 31 08:44:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Badicioiu X-Patchwork-Id: 39864 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E1333202FE for ; Fri, 31 Oct 2014 08:47:08 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id h11sf315852wiw.11 for ; Fri, 31 Oct 2014 01:47:08 -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=PbqetVwysIuXoI6DK9DOHkGtHonpoRh8LeoRXv8A8INRDjWCNTUJOJ5ipMMwNkvZif oH2folL+P3jmv+LxxjtwVvJ24gYnvjGC/xqdMGRA2KHFl4cmFLqMn+ZD+vSmmuuPa1qh WQzlM2i9BA3f386w7wAQsDT1vpKBvSsMizTjbXSlVih1cZ1zyB7adUrqWnqFHTvP4Twk 9Iwoj+Sxiu3LySBL1i3kVd2f8nDdqhKEjwV0VrmfadfXI+cwZOo05j7PDTPAMyWPB1tR A58ajcatel5NAWZyjXjnrEtRakyVZmfotJLOxPDltJBenn78oG9bhmswX3GDtgFOcX5B ftQw== X-Gm-Message-State: ALoCoQnA9MiG5Uto99o64lxmXngYLxNMPyXnTTU/VAwBcK/NU5at46OKgo7iTPiexxx+SheLYPvd X-Received: by 10.152.1.133 with SMTP id 5mr184659lam.8.1414745228002; Fri, 31 Oct 2014 01:47:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.13 with SMTP id bc13ls444157lab.21.gmail; Fri, 31 Oct 2014 01:47:07 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr24620168lah.56.1414745227730; Fri, 31 Oct 2014 01:47:07 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id j9si15598298lag.75.2014.10.31.01.47.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 01:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id s18so1233923lam.28 for ; Fri, 31 Oct 2014 01:47:07 -0700 (PDT) X-Received: by 10.112.189.10 with SMTP id ge10mr24336852lbc.23.1414745227266; Fri, 31 Oct 2014 01:47:07 -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 c5csp167988lbz; Fri, 31 Oct 2014 01:47:06 -0700 (PDT) X-Received: by 10.140.101.145 with SMTP id u17mr6398110qge.84.1414745226090; Fri, 31 Oct 2014 01:47:06 -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 z74si16095396qgz.53.2014.10.31.01.47.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 Oct 2014 01:47:06 -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 1Xk7rK-0003zb-By; Fri, 31 Oct 2014 08:47:02 +0000 Received: from mail-bn1bon0069.outbound.protection.outlook.com ([157.56.111.69] helo=na01-bn1-obe.outbound.protection.outlook.com) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xk7rC-0003z3-SP for lng-odp@lists.linaro.org; Fri, 31 Oct 2014 08:46:54 +0000 Received: from CH1PR03CA011.namprd03.prod.outlook.com (10.255.156.156) by BL2PR03MB1011.namprd03.prod.outlook.com (10.141.182.149) with Microsoft SMTP Server (TLS) id 15.1.6.9; Fri, 31 Oct 2014 08:46:47 +0000 Received: from BN1AFFO11FD057.protection.gbl (10.255.156.132) by CH1PR03CA011.outlook.office365.com (10.255.156.156) with Microsoft SMTP Server (TLS) id 15.1.11.14 via Frontend Transport; Fri, 31 Oct 2014 08:46:46 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD057.mail.protection.outlook.com (10.58.53.72) with Microsoft SMTP Server (TLS) id 15.0.1049.20 via Frontend Transport; Fri, 31 Oct 2014 08:46:46 +0000 Received: from fsr-fed1364-15.ea.freescale.net (fsr-fed1364-15.ea.freescale.net [10.171.81.144]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s9V8kilR007184; Fri, 31 Oct 2014 01:46:45 -0700 From: To: Date: Fri, 31 Oct 2014 10:44:53 +0200 Message-ID: <1414745093-20886-1-git-send-email-alexandru.badicioiu@linaro.org> X-Mailer: git-send-email 1.7.3.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130592188069758983; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(448002)(199003)(189002)(20776003)(76482002)(50986999)(97736003)(68736004)(89996001)(104166001)(88136002)(31966008)(19580405001)(6806004)(64706001)(99396003)(95666004)(46102003)(47776003)(106466001)(80022003)(33646002)(104016003)(85852003)(87286001)(87936001)(86362001)(85306004)(86152002)(92726001)(102836001)(92566001)(50466002)(26826002)(107046002)(19580395003)(36756003)(229853001)(85326001)(93916002)(110136001)(48376002)(21056001)(44976005)(120916001)(62966002)(84676001)(4396001)(50226001)(2351001)(77156001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB1011; H:tx30smr01.am.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:BL2PR03MB1011; 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.215.41 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; +}