From patchwork Thu Nov 9 12:00:11 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: 118437 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6502507qgn; Thu, 9 Nov 2017 04:04:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMZmRmR899RVK9PTXN2u8CmRl7ANmf80yscH6AuC4pgNroVjYGbjbSpQu9cQnyKMSldQzFAV X-Received: by 10.55.129.70 with SMTP id c67mr359828qkd.230.1510229096179; Thu, 09 Nov 2017 04:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510229096; cv=none; d=google.com; s=arc-20160816; b=Zpv3xeFlDjV7PMhEd+6yDu5YvgCteFfkdPmJx988xE0+/WYs1g9Y2SN40Od5rkuWw7 bnlzITSCj7vsQaeGTdKwu4wxHvMf6s7oDKn//RSCKlf5Yv3u7UAJX+UfZPwaoWN4cC/W 2ePcnsZZEbOhrkfaEaRml+ULpdwHKm80WAMTP7Wn2JDn0z98jbJokBt3aZyHcKC7GdVx Ly8K22HeP5bL9YxN7Amh2V1HRlz+AjKhraoa/Swb6CEk/PVvDHB8TAlq7wXqmfQ/qxdp WUN+NfgE+7S1h28FBPD2srSPyiHGnec4JA+R8DxfhEf+A8z2HSUZ26FRspHGOf+1RKHw kLRQ== 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=1W6OJiUqxoUqVRtdeZLiXZbY/jrhAChIpA2y20lthY0=; b=pT+VRUwfk9kurL9IYuWCDtNRM2Y0ewK4oD1DG5Fb32wiYaYteG2nqPAmtjmWqMgQOd jEKkSpIHaHulxuQ5OAQYAhDMsiNDka+mcwD6yR1dJ8iC44NVE9dQGiSJjSyzt4nb/WvE 4G3UK5xI9A5RvOpwLoJefqJwoiGkH2TnxMvhrmKt4ZshFEV+NWzDnNGFlqwk5VEPXpay lPmQaUkZJJ/nUgtRBSfFBBkv72WOq+DjAETAz0vLo6siPNnrjttDlMUha5PZ7eFFPJt2 boTtf5qQmTC9R09Fd91hLtQXmiwpJ/GS2CaVGRzUrHl8YNHoEz9Z+K5p13GO7KeaHgU6 a5LA== 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 i15si5743292qte.371.2017.11.09.04.04.55; Thu, 09 Nov 2017 04:04:56 -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 355B661006; Thu, 9 Nov 2017 12:04:55 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 559F060C12; Thu, 9 Nov 2017 12:02: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 A497160C18; Thu, 9 Nov 2017 12:02:19 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id BA3F760C12 for ; Thu, 9 Nov 2017 12:00:21 +0000 (UTC) Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward105o.mail.yandex.net (Yandex) with ESMTP id E8E824444BAE for ; Thu, 9 Nov 2017 15:00:19 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id KIyCpDlBr2-0Ji04IEQ; Thu, 09 Nov 2017 15:00:19 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bxb2c43GJ0-0JiSU4Xi; Thu, 09 Nov 2017 15:00:19 +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: Thu, 9 Nov 2017 15:00:11 +0300 Message-Id: <1510228814-21692-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510228814-21692-1-git-send-email-odpbot@yandex.ru> References: <1510228814-21692-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 273 Subject: [lng-odp] [PATCH API-NEXT v5 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: 5ed52232b041f855c0e109143480b16ea467c7da **/ 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;