From patchwork Wed Feb 7 11:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 127157 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp363612ljc; Wed, 7 Feb 2018 03:12:28 -0800 (PST) X-Google-Smtp-Source: AH8x226HlsNfcy1zfR24qV9l7v85dNkTc8Rdw3CnPJsg0yLwp3ZvRLpkciyZtI/mDVeqXgv9yxo5 X-Received: by 10.55.12.7 with SMTP id 7mr9039093qkm.56.1518001948624; Wed, 07 Feb 2018 03:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518001948; cv=none; d=google.com; s=arc-20160816; b=xY3cwFJadts+N5tSnRJ7ljWWEjXjUj5XeQI+uk0W7V8FkVd3CeNjKaA02xsyLOvGIe 9dJ4fj+L1kacnUS5OhHt75HIvYi3TcoFYUZEB4UG7X37fCbOvR1NXBaZg7GL8buMsjh4 BWDxhj8cgnPUzJcETc7oUJ6XjeQ3hQwcDfsBIXEV4R6PIVGE79SMFngaIo7WzJbwQyVz qEhQrOzwkxBXfrazGG9qJ2RGXgPAwtIVDcWflZf3KuTueIyL/oZMTdrwgnrHg27xaCuv Wr5MtYVX3pdeD+gGyzxeh7NxVzVEHggUph/InCN175anG/akZNc89QV2++pOhPQ26xbU z6Dg== 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=PV5ANtW3tEx5gYNWx8RYW2ujIHeiJ/+mHZH3yoZ02FE=; b=IzJhaFZoszg2u7HevK2d6mdCrBZkkAJDYB5PsP20YmRe9B+O6QEh1S5NBmCo5OEIhY 41SZgKyN7tmRhARSf99zgzwCNizAtUWe6ebxTVY+1Nj9vsouiSqEv9EHk1sR44A8AgPm JLJWBd9dJrdCV9bnqzQ3fQfwYnX003jzytNRKI/Z3tisAMgSOcs3AeqMo2N7AEVU75yN WxFn904dZ5Ake0o/D9obh1k4Q/wrMY+nBd7MLxOkwmbtVvfmQkc1oLJ/9jXDQQvMEzT6 /eL1ZryBhSh76fGxIypD2oM+OarC8IUbwZRM3Nss0CMjXm/GeR2gB66wYsmKRXw4LllL RWTw== 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 l1si551000qtc.484.2018.02.07.03.12.28; Wed, 07 Feb 2018 03:12:28 -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 45FCB62773; Wed, 7 Feb 2018 11:12:28 +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_H2 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 72CD0627A1; Wed, 7 Feb 2018 11:04:00 +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 627F76279D; Wed, 7 Feb 2018 11:03:51 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 27D6F61555 for ; Wed, 7 Feb 2018 11:02:25 +0000 (UTC) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 1D51E21833E9 for ; Wed, 7 Feb 2018 14:02:24 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id x7dUSdVFo3-2N2K97vB; Wed, 07 Feb 2018 14:02:23 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LVw23zZMqp-2HVi6krH; Wed, 07 Feb 2018 14:02:17 +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, 7 Feb 2018 14:00:08 +0300 Message-Id: <1518001208-29529-15-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518001208-29529-1-git-send-email-odpbot@yandex.ru> References: <1518001208-29529-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 457 Subject: [lng-odp] [PATCH API-NEXT v1 14/14] linux-gen: packet: deprecate old L3/L4 flag setters 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: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 457 (lumag:packet-types) ** https://github.com/Linaro/odp/pull/457 ** Patch: https://github.com/Linaro/odp/pull/457.patch ** Base sha: e1175d5a69c65bb465022c9f1381c40fdb5c4069 ** Merge commit sha: 802ddfc5ea6f47a8935993bf6f8c1675a4c94930 **/ platform/linux-generic/odp_packet_flags.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_packet_flags.c b/platform/linux-generic/odp_packet_flags.c index ce140e600..7e48397ee 100644 --- a/platform/linux-generic/odp_packet_flags.c +++ b/platform/linux-generic/odp_packet_flags.c @@ -8,6 +8,7 @@ #include #include +#include #include #define retflag(pkt, x) do { \ @@ -239,6 +240,7 @@ void odp_packet_has_vlan_qinq_set(odp_packet_t pkt, int val) setflag(pkt, input_flags.vlan_qinq, val); } +#if ODP_DEPRECATED_API void odp_packet_has_arp_set(odp_packet_t pkt, int val) { odp_packet_hdr_t *pkt_hdr = odp_packet_hdr(pkt); @@ -268,6 +270,7 @@ void odp_packet_has_ipv6_set(odp_packet_t pkt, int val) else if (pkt_hdr->p.input_flags.l3_type == ODP_PROTO_L3_TYPE_IPV6) odp_packet_l3_type_set(pkt, ODP_PROTO_L3_TYPE_NONE); } +#endif void odp_packet_has_ip_bcast_set(odp_packet_t pkt, int val) { @@ -294,6 +297,7 @@ void odp_packet_has_ipsec_set(odp_packet_t pkt, int val) setflag(pkt, input_flags.ipsec, val); } +#if ODP_DEPRECATED_API void odp_packet_has_udp_set(odp_packet_t pkt, int val) { odp_packet_hdr_t *pkt_hdr = odp_packet_hdr(pkt); @@ -337,6 +341,7 @@ void odp_packet_has_icmp_set(odp_packet_t pkt, int val) else if (pkt_hdr->p.input_flags.l3_type == ODP_PROTO_L4_TYPE_ICMPV6) odp_packet_l4_type_set(pkt, ODP_PROTO_L4_TYPE_NONE); } +#endif void odp_packet_has_flow_hash_clr(odp_packet_t pkt) {