From patchwork Thu Sep 11 01:10:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vkamensky X-Patchwork-Id: 37222 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A8B420293 for ; Thu, 11 Sep 2014 01:11:22 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id rd18sf14575040iec.11 for ; Wed, 10 Sep 2014 18:11:21 -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:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=Vs4gHiHb17L+ayf+jcYGbhXyBlVIOh5ZLaWLqKw90Hg=; b=FwZzaWPdlZxL/JBrbjoAac7g6qDsGZl26cgQjPwHcB4d4cPOHbvps+3wTo2qGjUJne 0rw67sLWID9n79tnowMOWQ6umst8jM0TdkLj8KGdMYl2Mml0axOMITlnkhahEKovNbXy 2g86tS1GqH/d7zzOJVU4726tzA7jEm+8kuZ0RVnXN7+r7R7Nbd57yz+hmijVCmQEAFsU xRT7+RV+Y5O8a0N+XydqrtItWWNO0EhJzAb93bhk7WA45SzmxXaRc9rDzrMN1aJD2TrD hqaqFuAFKV1+IXZj932enezCoblXkijrWA6YPfPg4vsd+JkZihzRSrrIr7p9ChQkXpXE 97aw== X-Gm-Message-State: ALoCoQnvzt5E4Zuh7KaESNbeMBusMjC16QFdyJ8QRSpUtafS3Rz/uG1lu1jz8RlOEtB4UsSbsxmb X-Received: by 10.182.230.133 with SMTP id sy5mr28690506obc.22.1410397881629; Wed, 10 Sep 2014 18:11:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.55 with SMTP id c52ls2778797qgc.8.gmail; Wed, 10 Sep 2014 18:11:21 -0700 (PDT) X-Received: by 10.221.24.7 with SMTP id rc7mr9478567vcb.54.1410397881497; Wed, 10 Sep 2014 18:11:21 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ut5si7079685vcb.26.2014.09.10.18.11.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Sep 2014 18:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id hy10so5060281vcb.5 for ; Wed, 10 Sep 2014 18:11:21 -0700 (PDT) X-Received: by 10.220.172.8 with SMTP id j8mr23460175vcz.32.1410397881399; Wed, 10 Sep 2014 18:11:21 -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.221.45.67 with SMTP id uj3csp517389vcb; Wed, 10 Sep 2014 18:11:21 -0700 (PDT) X-Received: by 10.229.53.133 with SMTP id m5mr65304443qcg.19.1410397880907; Wed, 10 Sep 2014 18:11:20 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id t4si20725065qaj.16.2014.09.10.18.11.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Sep 2014 18:11:20 -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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XRsut-0000Ua-Jz; Thu, 11 Sep 2014 01:11:19 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XRsud-0000TL-6c for lng-odp@lists.linaro.org; Thu, 11 Sep 2014 01:11:03 +0000 Received: by mail-pa0-f44.google.com with SMTP id kx10so8755856pab.17 for ; Wed, 10 Sep 2014 18:10:57 -0700 (PDT) X-Received: by 10.70.0.201 with SMTP id 9mr72662518pdg.43.1410397857648; Wed, 10 Sep 2014 18:10:57 -0700 (PDT) Received: from kamensky-w530.cisco.com.net ([24.6.79.41]) by mx.google.com with ESMTPSA id ju4sm15614063pbc.6.2014.09.10.18.10.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Sep 2014 18:10:57 -0700 (PDT) From: Victor Kamensky To: lng-odp@lists.linaro.org Date: Wed, 10 Sep 2014 18:10:25 -0700 Message-Id: <1410397827-2758-4-git-send-email-victor.kamensky@linaro.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1410397827-2758-1-git-send-email-victor.kamensky@linaro.org> References: <1410397827-2758-1-git-send-email-victor.kamensky@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH 3/5] linux-generic: crypto: added dummy odp_crypto_session_destroy 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: victor.kamensky@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.220.174 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 Signed-off-by: Victor Kamensky --- platform/linux-generic/include/api/odp_crypto.h | 2 ++ platform/linux-generic/odp_crypto.c | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/platform/linux-generic/include/api/odp_crypto.h b/platform/linux-generic/include/api/odp_crypto.h index 9220fb5..918249a 100644 --- a/platform/linux-generic/include/api/odp_crypto.h +++ b/platform/linux-generic/include/api/odp_crypto.h @@ -220,6 +220,8 @@ odp_crypto_session_create(odp_crypto_session_params_t *params, odp_crypto_session_t *session, enum odp_crypto_ses_create_err *status); +int odp_crypto_session_destroy(odp_crypto_session_t ses); + /** * Crypto session creation (asynchronous) * diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index ef91a34..15aeb51 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -472,3 +472,12 @@ odp_crypto_get_operation_compl_packet(odp_buffer_t completion_event) { return odp_packet_from_buffer(completion_event); } + +int odp_crypto_session_destroy(odp_crypto_session_t ses ODP_UNUSED) +{ + /* + * Just stub for now, there is no clean short way to reclaim + * slot of odp_crypto_global_t.sessions + */ + return 0; +}