From patchwork Wed Nov 8 14:00:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 118268 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5339823qgn; Wed, 8 Nov 2017 06:12:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMbjsYwwzXIfBRZhgqt3rb2DYzgfHgXNIq3VQcm6yBc45YfMySy1IUZQBqC3OzuWVmtqs5Od X-Received: by 10.200.63.156 with SMTP id d28mr1013239qtk.170.1510150331116; Wed, 08 Nov 2017 06:12:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510150331; cv=none; d=google.com; s=arc-20160816; b=gKyVqSiqgpRfuchPfZ1nEchHyLKK8fqWGar3AgAM5WN+q8lojYu3iKfwu+hOat2VYW oimLMMIc2gwiMKrqXWKrRRT9+MVk7S/pogPVyPToDTT1Yw0B2yZx/FNBBz+S24P0H9rr aSIUXQn5nLAsDOkiBzfANZeKSR17R7UgMkzvYTtImZLUiUBhIeBKkRqo+bjtectnp3m0 Q8d0rvD1hYChFbt1iJxXCeAI0IIn351N7jfcLuUt9XchWXP+Sy5xjhkZx8R0wd8aO+Sg Hxbxp8BjA1xJVnZrBxCGjyYmS2GFgzz3FbJBreln+jmto8JPAT3l1YjBpabkAqBtYZO3 9oVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=yoGeGmTB4fdeqwXUEswwC9tN0krjQDYyVIiG+uz/EkQ=; b=Ipm5VL2NRvDwNQ2r+anE3zOsnel088Vv5EzGu2QzC9IsCKrp4LhegnjIc3AjNbHrDc qqxOV1jjN3kQG+p2cnScge9gNfbGSpmUjJkWFoWEfRAGOl5KyQu1dj74Trem7D1HTZpz lUIGBBdPA8iqW41d/6W/rERktIE43kQVRONJfLss7V1m/QIu6AoL1u2sbPmkqxoEmA+e DciJQGhWKnCgske2gRv3zJjQRQnqZ2N8Y3k0Zx2eW5o0KPYMME3j5sV7ABeWUXjNYBM9 tvKejvTVb7Vrj/9Mq7BwXpOR76KBAXgs9nCIO6mSf6V7GkTMtz+5yYDzvgQwJBkL/PlX /S+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id w21si3920188qtk.212.2017.11.08.06.12.10; Wed, 08 Nov 2017 06:12:11 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id BBE4061007; Wed, 8 Nov 2017 14:12:10 +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,FREEMAIL_FROM, 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 6E67660D37; Wed, 8 Nov 2017 14:03:33 +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 BC81460C2F; Wed, 8 Nov 2017 14:03:24 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id 93F2260C2E for ; Wed, 8 Nov 2017 14:00:36 +0000 (UTC) Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 13DF343023A2 for ; Wed, 8 Nov 2017 17:00:31 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LqeyzYPKCi-0VbSvtpM; Wed, 08 Nov 2017 17:00:31 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ABVIw2d5cZ-0U18o1NB; Wed, 08 Nov 2017 17:00:30 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 8 Nov 2017 17:00:19 +0300 Message-Id: <1510149622-31536-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510149622-31536-1-git-send-email-odpbot@yandex.ru> References: <1510149622-31536-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 273 Subject: [lng-odp] [PATCH API-NEXT v2 3/6] api: ipsec: use common protocol layer enum 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" From: Petri Savolainen Use common values between ipsec parse and packet protocol layer enums. Signed-off-by: Petri Savolainen --- /** Email created from pull request 273 (psavol:next-packet-parse) ** https://github.com/Linaro/odp/pull/273 ** Patch: https://github.com/Linaro/odp/pull/273.patch ** Base sha: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: 80af43ecfb926cbcf7f13ae5f91653aaee11ebf3 **/ include/odp/api/spec/ipsec.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 26e852fca..4a33af8ea 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -74,19 +74,19 @@ typedef enum odp_ipsec_op_mode_t { */ typedef enum odp_ipsec_proto_layer_t { /** No layers */ - ODP_IPSEC_LAYER_NONE = 0, + ODP_IPSEC_LAYER_NONE = ODP_PROTO_LAYER_NONE, /** Layer L2 protocols (Ethernet, VLAN, etc) */ - ODP_IPSEC_LAYER_L2, + ODP_IPSEC_LAYER_L2 = ODP_PROTO_LAYER_L2, /** Layer L3 protocols (IPv4, IPv6, ICMP, IPSEC, etc) */ - ODP_IPSEC_LAYER_L3, + ODP_IPSEC_LAYER_L3 = ODP_PROTO_LAYER_L3, /** Layer L4 protocols (UDP, TCP, SCTP) */ - ODP_IPSEC_LAYER_L4, + ODP_IPSEC_LAYER_L4 = ODP_PROTO_LAYER_L4, /** All layers */ - ODP_IPSEC_LAYER_ALL + ODP_IPSEC_LAYER_ALL = ODP_PROTO_LAYER_ALL } odp_ipsec_proto_layer_t;