From patchwork Tue Feb 21 22:41:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 94285 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp656691qgi; Tue, 21 Feb 2017 14:41:38 -0800 (PST) X-Received: by 10.237.50.193 with SMTP id z59mr29369775qtd.102.1487716898139; Tue, 21 Feb 2017 14:41:38 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z126si4214460qkb.328.2017.02.21.14.41.37; Tue, 21 Feb 2017 14:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 64DE760CE2; Tue, 21 Feb 2017 22:41:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0F34360BF6; Tue, 21 Feb 2017 22:41:34 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6A56060B42; Tue, 21 Feb 2017 22:41:31 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 3B2B460B42 for ; Tue, 21 Feb 2017 22:41:30 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id z127so71330991lfa.2 for ; Tue, 21 Feb 2017 14:41:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Ni9NfAXklYYkR2EHQEFPqJ3TzrGx6tWRWKHSkVOlm+k=; b=FqyYToR3KHzhC0NQhiREAtsGxZePpyDmo9wpbT2/1LHVNwBE6+VJ+0oElw5SvCzZTS col0WEPpmNiGhNx3TbmCjp4MQLw7Jn58M7l3QkPuVsk8fx6yO3JNDoRswB0aow6K9Ryv +6qVIyPB8mC3G8OMisUGQmgJqdBO9bsyLOtpeER0g1m0rUXUBz52gj4VSWwAtxUcYqGF vh4QPHTBhw+AuMIVp/TmAbHNANwXoHK7ZWHgUhV4LWoUs0DQp/YV3wqm7n91Lw072bGH NyMXMS+bOcaQVRr8Y/MyERYOtYduVlV4RVHRyXWCoWLDYlxmL5NVNpwRGkTB6Uk4yZh/ hyug== X-Gm-Message-State: AMke39nvujnzB/7LxC3iE9cIxTUuxDpxG44UGP8t4IGFUJHwSXa0FLko4WPzVXqU4Lgua3WWmxw= X-Received: by 10.46.83.29 with SMTP id h29mr7434668ljb.84.1487716888696; Tue, 21 Feb 2017 14:41:28 -0800 (PST) Received: from forlindon.lumag.auriga.ru ([188.162.65.19]) by smtp.gmail.com with ESMTPSA id s20sm6537043lfe.41.2017.02.21.14.41.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 14:41:28 -0800 (PST) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Wed, 22 Feb 2017 01:41:24 +0300 Message-Id: <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170221182325.14424-1-nikhil.agarwal@linaro.org> References: <20170221182325.14424-1-nikhil.agarwal@linaro.org> Subject: [lng-odp] [PATCH 1/4] example: ipsec_offload: enable compilation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Enable compilation of the ipsec_offload example. Signed-off-by: Dmitry Eremin-Solenikov --- example/ipsec_offload/Makefile.am | 1 + example/m4/configure.m4 | 1 + 2 files changed, 2 insertions(+) -- 2.11.0 diff --git a/example/ipsec_offload/Makefile.am b/example/ipsec_offload/Makefile.am index ec660301..a61b9233 100644 --- a/example/ipsec_offload/Makefile.am +++ b/example/ipsec_offload/Makefile.am @@ -1,5 +1,6 @@ include $(top_srcdir)/example/Makefile.inc +bin_PROGRAMS = odp_ipsec_offload$(EXEEXT) odp_ipsec_offload_LDFLAGS = $(AM_LDFLAGS) -static odp_ipsec_offload_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/example diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 620db04f..03c006a5 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -14,6 +14,7 @@ AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile example/hello/Makefile example/ipsec/Makefile + example/ipsec_offload/Makefile example/l2fwd_simple/Makefile example/l3fwd/Makefile example/packet/Makefile From patchwork Tue Feb 21 22:41:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 94286 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp656839qgi; Tue, 21 Feb 2017 14:42:04 -0800 (PST) X-Received: by 10.36.225.13 with SMTP id n13mr11905028ith.114.1487716924064; Tue, 21 Feb 2017 14:42:04 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w126si10282601iow.122.2017.02.21.14.42.03; Tue, 21 Feb 2017 14:42:04 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8E29261063; Tue, 21 Feb 2017 22:42:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6D55260BDE; Tue, 21 Feb 2017 22:41:36 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7D73560BFD; Tue, 21 Feb 2017 22:41:32 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id 2752A60BDE for ; Tue, 21 Feb 2017 22:41:31 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id l12so34107672lfe.0 for ; Tue, 21 Feb 2017 14:41:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=v6HGj0PpI0EIcBO7SrQ+EIUrmzJe2qJa/D2D/DpH4Jc=; b=bJuWw3J2FNTBFoKc/Y6Mk/Y6EX3uhNtKHGolXvEcfRRu5w5M8ecYkhn67TDHC/16cT 4Gvcsdbp6mItd5AsiSh1Go+rnQcrUkOt+Lk0FAWSQU8uePQJLH2jpMQ1hnUuCqdOev9R MuCApcCxc4QE1/5t+ZPFhuh7pnygenLJOu4kSew8qxiYgm4rzn0HBN5yFtu5GsXsaucG P4HRrNxq2pI0xCWvH4Qd/S7AGlzRjQogJSSeA98k96gFDh0TJyJZo2dvbDUc8u7dENOK GK/m/Put1ZTFGqjoY2oDtxoofqcYAnQR2lWu6FNhBNOety2G3H2qKJkmxJRpdh3CzQq2 FS3w== X-Gm-Message-State: AMke39nRNjwl+YEkdcr4rYKqCjPn0wIn+51Ik2+ml2Z6vBWgoVKn5X74EyvI/JlUExd1vLKkDFk= X-Received: by 10.46.81.18 with SMTP id f18mr7423628ljb.136.1487716889724; Tue, 21 Feb 2017 14:41:29 -0800 (PST) Received: from forlindon.lumag.auriga.ru ([188.162.65.19]) by smtp.gmail.com with ESMTPSA id s20sm6537043lfe.41.2017.02.21.14.41.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 14:41:29 -0800 (PST) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Wed, 22 Feb 2017 01:41:25 +0300 Message-Id: <20170221224127.31314-2-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> References: <20170221182325.14424-1-nikhil.agarwal@linaro.org> <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 2/4] example: ipsef_offload: port to odpthreads helpers X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Switch from old linux-pthread API to odpthread. Signed-off-by: Dmitry Eremin-Solenikov --- example/ipsec_offload/odp_ipsec_offload.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) -- 2.11.0 diff --git a/example/ipsec_offload/odp_ipsec_offload.c b/example/ipsec_offload/odp_ipsec_offload.c index 4a494d07..001e7038 100644 --- a/example/ipsec_offload/odp_ipsec_offload.c +++ b/example/ipsec_offload/odp_ipsec_offload.c @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include @@ -30,6 +30,7 @@ #include #include +#include #include #include #include @@ -414,12 +415,12 @@ pkt_disposition_e do_ipsec_in_classify(odp_packet_t pkt) * - Input interfaces (i.e. new work) * - Per packet ipsec API completion queue * - * @param arg Required by "odph_linux_pthread_create", unused + * @param arg Required by "odph_odpthreads_create", unused * - * @return NULL (should never return) + * @return 0 (should never return) */ static -void *pktio_thread(void *arg EXAMPLE_UNUSED) +int pktio_thread(void *arg EXAMPLE_UNUSED) { int thr; odp_packet_t pkt; @@ -490,7 +491,7 @@ void *pktio_thread(void *arg EXAMPLE_UNUSED) out_port = (odp_out_entry_t *)odp_packet_user_ptr(out_pkt); out_queue = (odp_pktout_queue_t)out_port->pktout; - eth = (odph_ethhdr_t *)((void *)ip - sizeof(odph_ethhdr_t)); + eth = (odph_ethhdr_t *)((uint8_t *)ip - sizeof(odph_ethhdr_t)); eth->dst = out_port->next_hop_addr; eth->src = out_port->addr; eth->type = odp_cpu_to_be_16(0x800); @@ -505,7 +506,7 @@ void *pktio_thread(void *arg EXAMPLE_UNUSED) } /* unreachable */ - return NULL; + return 0; } /** @@ -514,7 +515,7 @@ void *pktio_thread(void *arg EXAMPLE_UNUSED) int main(int argc, char *argv[]) { - odph_linux_pthread_t thread_tbl[MAX_WORKERS]; + odph_odpthread_t thread_tbl[MAX_WORKERS]; int i; odp_shm_t shm; odp_cpumask_t cpumask; @@ -522,7 +523,7 @@ main(int argc, char *argv[]) odp_pool_param_t params; odp_queue_param_t qparam; odp_instance_t instance; - odph_linux_thr_params_t thr_params; + odph_odpthread_params_t thr_params; odp_ipsec_config_t config; odp_ipsec_capability_t capa; @@ -642,9 +643,9 @@ main(int argc, char *argv[]) thr_params.instance = instance; /* Create and initialize worker threads */ - odph_linux_pthread_create(thread_tbl, &cpumask, + odph_odpthreads_create(thread_tbl, &cpumask, &thr_params); - odph_linux_pthread_join(thread_tbl, num_workers); + odph_odpthreads_join(thread_tbl); free(args->appl.if_names); free(args->appl.if_str); From patchwork Tue Feb 21 22:41:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 94287 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp656969qgi; Tue, 21 Feb 2017 14:42:30 -0800 (PST) X-Received: by 10.36.248.198 with SMTP id a189mr30032436ith.97.1487716950580; Tue, 21 Feb 2017 14:42:30 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g83si21318121iof.70.2017.02.21.14.42.30; Tue, 21 Feb 2017 14:42:30 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1A2BC60C9D; Tue, 21 Feb 2017 22:42:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id C165760CE2; Tue, 21 Feb 2017 22:41:39 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 336CC60BFD; Tue, 21 Feb 2017 22:41:33 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id EE33A60B42 for ; Tue, 21 Feb 2017 22:41:31 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id b80so34785755lfe.3 for ; Tue, 21 Feb 2017 14:41:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=poNPmOCnyNApVdrzKMS9syPOPFW6GRN5OcJDcQOry4M=; b=tbQtKj2dIMt6brmLoz/Nqn0AgB5oXVjsK6NieAqWMEiUx1ncLsML4YsYbbuaOMmZUa pcl2mGu53Cu0EHXoh1VoSQqP6aOpdjf/U5vv38Seik9Tu2AnJIuGDZdK8dM4S72dApvl xAuc4ResekdlOMlb2GQP9ZY0VbWheNIoIPdrg95W4y2lxKY1He0wHcb9lcN3gkhT6ZNS uxGTia9NgBBtRHBFyK1W+aDfhLGu1GPYYl+159P0Jbt/tbXYkeBL2oaQ8whYAluFh/9Q ybSYe7SSq5ltd8rlhOL7QATr7ZCcmLJ960ekYQfq6J+i1eiaoSSkhaXzAQBlYmkI67JG KOfw== X-Gm-Message-State: AMke39n0efa4eStQEPYu25huk/KTfAZq/QByIvB2WHgZtEK0esKCAizvKx3wBptk7JT65Sioyz0= X-Received: by 10.25.157.65 with SMTP id g62mr3393683lfe.29.1487716890625; Tue, 21 Feb 2017 14:41:30 -0800 (PST) Received: from forlindon.lumag.auriga.ru ([188.162.65.19]) by smtp.gmail.com with ESMTPSA id s20sm6537043lfe.41.2017.02.21.14.41.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 14:41:30 -0800 (PST) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Wed, 22 Feb 2017 01:41:26 +0300 Message-Id: <20170221224127.31314-3-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> References: <20170221182325.14424-1-nikhil.agarwal@linaro.org> <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 3/4] abi: event: add ODP_EVENT_IPSEC_RESULT X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" ODP_EVENT_IPSEC_RESULT is an event type used for result reporting from IPsec offload. Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/arch/default/api/abi/event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 Reviewed-by: Bill Fischofer diff --git a/include/odp/arch/default/api/abi/event.h b/include/odp/arch/default/api/abi/event.h index 4f6596b1..df9870a8 100644 --- a/include/odp/arch/default/api/abi/event.h +++ b/include/odp/arch/default/api/abi/event.h @@ -28,7 +28,8 @@ typedef enum odp_event_type_t { ODP_EVENT_BUFFER = 1, ODP_EVENT_PACKET = 2, ODP_EVENT_TIMEOUT = 3, - ODP_EVENT_CRYPTO_COMPL = 4 + ODP_EVENT_CRYPTO_COMPL = 4, + ODP_EVENT_IPSEC_RESULT = 5, } odp_event_type_t; /** From patchwork Tue Feb 21 22:41:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 94288 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp657053qgi; Tue, 21 Feb 2017 14:42:50 -0800 (PST) X-Received: by 10.36.88.207 with SMTP id f198mr30149125itb.44.1487716970709; Tue, 21 Feb 2017 14:42:50 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w127si3683042itd.32.2017.02.21.14.42.50; Tue, 21 Feb 2017 14:42:50 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 093D660C05; Tue, 21 Feb 2017 22:42:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0A18F60DC9; Tue, 21 Feb 2017 22:41:41 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A683F60C60; Tue, 21 Feb 2017 22:41:34 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id EB53B60BDE for ; Tue, 21 Feb 2017 22:41:32 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id l12so34107920lfe.0 for ; Tue, 21 Feb 2017 14:41:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=2LW6iqZepxg8ssRwjYcHv7gPW4I8u+YzmKy/JPBqCv0=; b=aStWFr056fXOqHKrdP7yDa0SQ2Th4xjGPDtrwksH8B5jSYWzTERdnu60awZ7tNF1xk X7+/fSwoZinp9+9h4niFD0yhz+/G1vD8Ep1IcvCOs4pXwhHA9bX16lBWZU1GvJ/qNvap 1CzeqNAN64/Jwd7bDp5tkBWM4F+JyuATKn5Jrp9mlOlqO+0V4+eWBbDGGqtzYzwVQPvr 8owexnLTFDLXFosSl/6KcuEjKKgfW/n5Gew7ad/9m4YZX5GcphbSQla3AHKMDSree0su jIkrps8kyFdGXSw0n7jUntWH9EKawa4BS6qE4aW7CWHkuWHbwfVFtUvV728Uw8176gyf LxzQ== X-Gm-Message-State: AMke39kzbaiEQnVl7FEUHuasta/1XpnAk1BD+mds2+cOfLcMhrjCFxlp0dapHzdzQwpwZgl8n5o= X-Received: by 10.25.26.2 with SMTP id a2mr2847165lfa.154.1487716891577; Tue, 21 Feb 2017 14:41:31 -0800 (PST) Received: from forlindon.lumag.auriga.ru ([188.162.65.19]) by smtp.gmail.com with ESMTPSA id s20sm6537043lfe.41.2017.02.21.14.41.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 14:41:31 -0800 (PST) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Wed, 22 Feb 2017 01:41:27 +0300 Message-Id: <20170221224127.31314-4-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> References: <20170221182325.14424-1-nikhil.agarwal@linaro.org> <20170221224127.31314-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 4/4] api: crypto: add definitions for SHA-1 HMAC authentication X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/api/spec/crypto.h | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.11.0 diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 9855bf98..cdff8e94 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -102,6 +102,12 @@ typedef enum { */ ODP_AUTH_ALG_MD5_HMAC, + /** HMAC-SHA-1 + * + * SHA-1 algorithm in HMAC mode + */ + ODP_AUTH_ALG_SHA1_HMAC, + /** HMAC-SHA-256 * * SHA-256 algorithm in HMAC mode @@ -117,6 +123,9 @@ typedef enum { /** @deprecated Use ODP_AUTH_ALG_MD5_HMAC instead */ ODP_AUTH_ALG_MD5_96, + /** @deprecated Use ODP_AUTH_ALG_SHA1_HMAC instead */ + ODP_AUTH_ALG_SHA1_96, + /** @deprecated Use ODP_AUTH_ALG_SHA256_HMAC instead */ ODP_AUTH_ALG_SHA256_128,