From patchwork Mon Nov 24 17:18:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 41415 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0DFFB24524 for ; Mon, 24 Nov 2014 17:19:29 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id u10sf3447326lbd.2 for ; Mon, 24 Nov 2014 09:19:27 -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:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=PUnpQYZe5Rzt1LSRvCyHgY9pq+eodMDk4WOurjSShp8=; b=bVc6ir9qK+DCwjFHMQN1dnIbRKKN2BPcEiN9xJjFOQ0RqpQER5ryjXjQIsLmGzsx/R hNqn4fb/5rVqUR/2a/k37MaA/XN6UojqbwdmnTnJHhzb+7Aj2Xis19Pt+vAjfxgQ1K+P 3CWXPcqv8Uf1+EL3S4Al33JxnteWfMVY5SYhSOsQsa2zRdIqQXuRQ73+ebXi8DfbGlHq 5d7Nt2SGSni/tlwl/saGSHY/6hXeKoFYw6nw4GLUGcXFwP/yQ43ULfjooExzbBuqc1+G /FKDHRSUZm/X1yZSU5LI3XURY8yYyE8LJhesiUEcXBMbcS9QD76zOooFMp8YyS2tZmiY ZLxg== X-Gm-Message-State: ALoCoQlo2Pw5K/+7o3/Tu/A82lSDuhRltMeCPhFmQTu5uVKWVyXJocvpXocNm9ealv6ENdLPDuHy X-Received: by 10.112.151.38 with SMTP id un6mr6505295lbb.0.1416849567651; Mon, 24 Nov 2014 09:19:27 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.228 with SMTP id uh4ls461789lac.108.gmail; Mon, 24 Nov 2014 09:19:27 -0800 (PST) X-Received: by 10.112.185.68 with SMTP id fa4mr21816192lbc.84.1416849567497; Mon, 24 Nov 2014 09:19:27 -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 pd10si15767349lbc.128.2014.11.24.09.19.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Nov 2014 09:19:27 -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 z12so4889091lbi.18 for ; Mon, 24 Nov 2014 09:19:27 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr21146311lbr.74.1416849567328; Mon, 24 Nov 2014 09:19:27 -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 ew9csp295001lbc; Mon, 24 Nov 2014 09:19:26 -0800 (PST) X-Received: by 10.224.80.6 with SMTP id r6mr30066006qak.5.1416849566169; Mon, 24 Nov 2014 09:19:26 -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 i7si16384533qan.31.2014.11.24.09.19.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Nov 2014 09:19:26 -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 1XsxII-0001WS-PY; Mon, 24 Nov 2014 17:19:22 +0000 Received: from mail-qg0-f42.google.com ([209.85.192.42]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XsxI0-0001U4-BB for lng-odp@lists.linaro.org; Mon, 24 Nov 2014 17:19:04 +0000 Received: by mail-qg0-f42.google.com with SMTP id z107so5596518qgd.1 for ; Mon, 24 Nov 2014 09:18:59 -0800 (PST) X-Received: by 10.224.72.5 with SMTP id k5mr31034142qaj.2.1416849539127; Mon, 24 Nov 2014 09:18:59 -0800 (PST) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id p78sm12305072qgp.44.2014.11.24.09.18.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 09:18:58 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 24 Nov 2014 12:18:42 -0500 Message-Id: <1416849522-18047-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: crypto patch Subject: [lng-odp] [PATCH] API: crypto: Remove unused async API 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: , MIME-Version: 1.0 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: mike.holmes@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 For the 1.0 release there are no platforms using the async API. With no way to test these APIs they should be removed until needed. Signed-off-by: Mike Holmes --- platform/linux-generic/include/api/odp_crypto.h | 44 ------------------------- platform/linux-generic/odp_crypto.c | 32 ------------------ 2 files changed, 76 deletions(-) diff --git a/platform/linux-generic/include/api/odp_crypto.h b/platform/linux-generic/include/api/odp_crypto.h index 4741bcb..337e7cf 100644 --- a/platform/linux-generic/include/api/odp_crypto.h +++ b/platform/linux-generic/include/api/odp_crypto.h @@ -225,50 +225,6 @@ odp_crypto_session_create(odp_crypto_session_params_t *params, odp_crypto_session_t *session, enum odp_crypto_ses_create_err *status); -/** - * Crypto session creation (asynchronous) - * - * Initiate crypto session creation. Results are delivered using - * the completion event via the completion queue. - * - * @param params Session parameters - * @param completion_event Event by which the session creation results are - * delivered. - * @param completion_queue Queue by which the completion event will be - * delivered. - * - * @return 0 if successful else -1 - * - */ -int -odp_crypto_session_create_async(odp_crypto_session_params_t *params, - odp_buffer_t completion_event, - odp_queue_t completion_queue); - - -/** - * Crypto session creation completion status - * - * Accessor function for obtaining creation status from the completion event. - * - * @param completion_event Event containing operation results - * @param status Pointer to store creation return code - */ -void -odp_crypto_get_ses_create_compl_status(odp_buffer_t completion_event, - enum odp_crypto_ses_create_err *status); - -/** - * Crypto session creation completion return value - * - * Accessor function for obtaining handle for newly created session. - * - * @param completion_event Event containing operation results - * @param session Pointer to store session handle - */ -void -odp_crypto_get_ses_create_compl_session(odp_buffer_t completion_event, - odp_crypto_session_t *session); /** * Crypto per packet operation diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 9ca2251..d3cdec7 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -334,19 +334,6 @@ odp_crypto_session_create(odp_crypto_session_params_t *params, return 0; } -int -odp_crypto_session_create_async(odp_crypto_session_params_t *params, - odp_buffer_t completion_event, - odp_queue_t completion_queue) -{ - odp_crypto_generic_session_result_t *result; - - result = odp_buffer_addr(completion_event); - if (odp_crypto_session_create(params, &result->session, &result->rc)) - return -1; - odp_queue_enq(completion_queue, completion_event); - return 0; -} int odp_crypto_operation(odp_crypto_op_params_t *params, @@ -451,25 +438,6 @@ odp_crypto_get_operation_compl_status(odp_buffer_t completion_event, memcpy(cipher, &result->cipher, sizeof(*cipher)); } -void -odp_crypto_get_ses_create_compl_status(odp_buffer_t completion_event, - enum odp_crypto_ses_create_err *status) -{ - odp_crypto_generic_session_result_t *result; - - result = odp_buffer_addr(completion_event); - *status = result->rc; -} - -void -odp_crypto_get_ses_create_compl_session(odp_buffer_t completion_event, - odp_crypto_session_t *session) -{ - odp_crypto_generic_session_result_t *result; - - result = odp_buffer_addr(completion_event); - *session = result->session; -} void odp_crypto_set_operation_compl_ctx(odp_buffer_t completion_event ODP_UNUSED,