From patchwork Thu Nov 9 11:00:10 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: 118426 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp776250edl; Thu, 9 Nov 2017 03:02:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMYQNWdOhRZqt2Z+ybxk76BK+Sf8siXaTUs9YBNQn6gBmojTuqGU7vnwDpT50sMR5P7pYnCw X-Received: by 10.237.62.45 with SMTP id l42mr130140qtf.46.1510225342868; Thu, 09 Nov 2017 03:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510225342; cv=none; d=google.com; s=arc-20160816; b=lK6EPQNOFxPJjaECV929W1OGz+vtciQVi0YxpUZiFavlQSrCN8mkUMgUXiz65Ygjz5 1kRrWNVbb5LA6WDplogkgnO9Gsyn+ajN8/ogdx/Z4Y4Scdwc6UwFuioeh4Y++Eh3wVfa pp4X5ZDRmgqrXjxpkt3prB0/926jqXL4ehXWCpEuk+P7ffttyhBlrULV+0gEufBA/XTy XzvYyQ5sc2hiQOSgRiISEjViFu3jaKbchpdtD0iOZIehRlCvFSk1O0nfaY0yOgM/JxGR pSXMFGN25wh2C3ZGZ6Ga3gIVvgXlruwqxOUrOwgl7I5Y7ghjYil8l5mMD24xM6yoLtgU E6Dw== 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=bmIdim0f7slC6lHk/vq8K6aZylL7k0D8ppmadtbYu8Y=; b=t9xUWzg2Sxh0YDLvWxQSPsXFay20Tg/NhlK86v6FsXRfnGb4wjLtjQuo5v+i6EZd9i +K6yx7oSrhcxdfgtCqi+URzcny8SclbQlo/qohShIeG0srODtyCBaiO/BjbYnpbQCSYD DVt8i87XAhRJZzjTQBA5JEfCP53r2Dm2ZcF/IOJG2ELNoElI3PR0aq9weNttNuTeoc0J pXqoxFeUvXcu4bIQ+a8zcAZBUZHL50yhqz44Ys9wVRI0+8WXKQaY+EwrkkEqI9yevXLn 5CB/i+UWWTtSzKx6vaCoN6WDbwG+9BgbpDDfcugXsRPoTfC0nyko5fa8rRUvyAKT+luu NWBA== 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 f2si1540704qkc.404.2017.11.09.03.02.22; Thu, 09 Nov 2017 03:02:22 -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 873F661008; Thu, 9 Nov 2017 11:02:22 +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,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 770116050D; Thu, 9 Nov 2017 11:00: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 35BA360C90; Thu, 9 Nov 2017 11:00:26 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 644F660690 for ; Thu, 9 Nov 2017 11:00:18 +0000 (UTC) Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 575D634C44BA for ; Thu, 9 Nov 2017 14:00:16 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xz8JFcqOdP-0Gmqg2rI; Thu, 09 Nov 2017 14:00:16 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OkOZyJOXa3-0FYib1ne; Thu, 09 Nov 2017 14:00:16 +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 14:00:10 +0300 Message-Id: <1510225213-20407-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510225213-20407-1-git-send-email-odpbot@yandex.ru> References: <1510225213-20407-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 273 Subject: [lng-odp] [PATCH API-NEXT v4 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: 0724c6474bb6db484fdbdbb1b14035a33ba9525d **/ 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;