From patchwork Wed Feb 7 13:00:09 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: 127181 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp459566ljc; Wed, 7 Feb 2018 05:13:53 -0800 (PST) X-Google-Smtp-Source: AH8x225BksgXoVrogrvUBqZsZkWk2RxaYHi6ZpfHdpyhxbNW/bdW60+kV1XdjOC3Puzw2W7ySLzn X-Received: by 10.200.16.131 with SMTP id a3mr1284686qtj.65.1518009233578; Wed, 07 Feb 2018 05:13:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518009233; cv=none; d=google.com; s=arc-20160816; b=HYxMkNwBeSItTNVKPgqM8k3yplXausKnSpJGeKGjnlxT97tCLxE6sCrleAQTE9aggg 9jbUN+QcU1QRLxW61nJG4QCa94JHQdh72u1ADCS3gj1T6BDCBSVfRUy5PZXsmQ1LcZgL Vc99N2GfW2MG56x3MzTo5rteGE47RD4qaCE85inMOu5FDb4bW6whaotCh49yrMmbOVJi 2qqUaeXalDmxSFMzCOA5ovQ+cSc+pQnrCWT9h8tHxYoJoaV9cduNUygjGYNoSWGwmxcr ZW2jQJsX/Er0TvEkDHeLK9kKOk/jY+oSXPN15luf5qbnKXGmTFmng1vBlfVvsBAOr541 drQQ== 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=5Tt2CIt/ZjP8scSBDqEOX3cEYpImXQuwtzz7OZwrxFM=; b=OqDO9t8UPGGxImojA0ZnFApnia0Wa1LuJr/aVxEUwQAa8UOanMwP9KM+Oe7Xu+TIli clG5MGCWd8M3TlWoOfX1m3PynlRCSjpiWMkZZLlDHcsM+pU51V47UWLCmh7Z8hq1INV8 +pvYtUyDYYAl4cxg+f2YdrF3mGVj7oXE/FgM2pvHZjVK4Og5dLUjeH6EQRzga7FE6Bmd aHuhQcKfFdh9bpuvBMA6MU0bffhcWUIwT3KL+PKIt88sM2pZC9131gfLPiIEOMNWIhFQ +m/16HS63ZTYznEzXeacls8xstHdjRAId9ouVyZSeb0bRe5LuEYBceIYIJKZVi49wQe4 jBPA== 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 o186si988110qkb.67.2018.02.07.05.13.53; Wed, 07 Feb 2018 05:13:53 -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 0D0BF627F0; Wed, 7 Feb 2018 13:13:53 +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 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 68A4C627AC; Wed, 7 Feb 2018 13:02:01 +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 C8AAD60D3D; Wed, 7 Feb 2018 13:00:42 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 517F5606D0 for ; Wed, 7 Feb 2018 13:00:20 +0000 (UTC) Received: from mxback5j.mail.yandex.net (mxback5j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10e]) by forward103j.mail.yandex.net (Yandex) with ESMTP id F2B9D34C419B for ; Wed, 7 Feb 2018 16:00:18 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback5j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0nMXO35kP4-0IIGbbks; Wed, 07 Feb 2018 16:00:18 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2XfrietnG0-0IZuBFnM; Wed, 07 Feb 2018 16:00:18 +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 16:00:09 +0300 Message-Id: <1518008409-31750-15-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518008409-31750-1-git-send-email-odpbot@yandex.ru> References: <1518008409-31750-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 457 Subject: [lng-odp] [PATCH API-NEXT v3 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: 86fcf3650d33f5dd82712dda131fb8ca66a3bdf8 **/ 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) {