From patchwork Wed Feb 7 13: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: 127180 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp458344ljc; Wed, 7 Feb 2018 05:12:31 -0800 (PST) X-Google-Smtp-Source: AH8x227KvbDNyVegc7ObVwj6WbFrSIg87WBvSixpSiyxfzahf8KDdC/8pCMY9r+5SzAHH4SIW+PG X-Received: by 10.55.42.23 with SMTP id q23mr9293696qkh.80.1518009151245; Wed, 07 Feb 2018 05:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518009151; cv=none; d=google.com; s=arc-20160816; b=AXayWFRfiHnjMj3BDgLG85m5hA0nB1F5IMTq9+tKAS1OgAnpGCbVQWyDE1e09eoxvs 2DxGypM7Z8Fy4aeq7TmC8VeB6XWszrL+GAmYfsUpamR78qthCjvovBGpYwJCE9UOuxTR vcgxIsI+1eonT+ipDEsymkbgD6nQjnKkMxSuY3uh+U002U5DQp2k8iYBx4x1hOUZyMz8 yfTFvbUdPwkfwYNXwEMV4cEjZmVYaUv3bkyy3EM8/bRwbJ+y2YNPzL5BU438+xYAKoYq xDxJoTnBMTuqiF9REM5aq5dW250EjDDcl4ywLzF0Qviq/hAwRaFs03QHf6jtE7ufQ1qW 8LoA== 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=HFctEopa4JZ5XpGEADnAUjmfRBKKtTf0hJXczF0MauE=; b=V753SPT+CGN0DybTS+CUYNZ+nCTkvzVMulIBVjITJCDgUD0sH54YWzUF5jWPlQH0NT 7pOKpZ3VcxnBAJq46Ml/pk1cmALwb20bo+YwJK/gbkTYMlIJaQUNbG9CTx85xnbHi/bE GdVATEcpH+KbLjCZqk0KCFGjY8GzlGIWRSFuqHAtKSNrwNpYwFDdsnZNwtlH3gfQMJgS OhgzJs9ZcH5ft1Y/SWYg7scfbQzg/J7G+rQf7vWxnXFcFKIBuVnutyXhCEpLCSOdbq7t LWpG9MKIM4X+84r5ifKf0TZUJWgGHWZ0iuuQ9jJlnLlE04N4VujEKTWMdUhHqyBAZBij SU7w== 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 p10si759501qke.471.2018.02.07.05.12.31; Wed, 07 Feb 2018 05:12:31 -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 E7D77627DF; Wed, 7 Feb 2018 13:12:30 +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 07393627A6; Wed, 7 Feb 2018 13:01:53 +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 BB48B616E5; Wed, 7 Feb 2018 13:00:40 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 734D660B0E for ; Wed, 7 Feb 2018 13:00:19 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 295554441B42 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 mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XHCvKIp6PS-0I3qQsOY; Wed, 07 Feb 2018 16:00:18 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2XfrietnG0-0HZmAJxu; Wed, 07 Feb 2018 16:00: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 16:00:08 +0300 Message-Id: <1518008409-31750-14-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 13/14] api: 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 **/ include/odp/api/spec/packet_flags.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/include/odp/api/spec/packet_flags.h b/include/odp/api/spec/packet_flags.h index 500ecc148..e231d00ec 100644 --- a/include/odp/api/spec/packet_flags.h +++ b/include/odp/api/spec/packet_flags.h @@ -21,6 +21,7 @@ extern "C" { #include #include +#include /** @addtogroup odp_packet * Operations on packet metadata flags. @@ -412,28 +413,28 @@ void odp_packet_has_vlan_set(odp_packet_t pkt, int val); void odp_packet_has_vlan_qinq_set(odp_packet_t pkt, int val); /** - * Set flag for ARP + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_arp_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_arp_set)(odp_packet_t pkt, int val); /** - * Set flag for IPv4 + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_ipv4_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_ipv4_set)(odp_packet_t pkt, int val); /** - * Set flag for IPv6 + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_ipv6_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_ipv6_set)(odp_packet_t pkt, int val); /** * Set flag for IP broadcast address @@ -476,36 +477,36 @@ void odp_packet_has_ipopt_set(odp_packet_t pkt, int val); void odp_packet_has_ipsec_set(odp_packet_t pkt, int val); /** - * Set flag for UDP + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_udp_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_udp_set)(odp_packet_t pkt, int val); /** - * Set flag for TCP + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_tcp_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_tcp_set)(odp_packet_t pkt, int val); /** - * Set flag for SCTP + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_sctp_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_sctp_set)(odp_packet_t pkt, int val); /** - * Set flag for ICMP + * @deprecated Use odp_packet_l3_type_set instead */ * * @param pkt Packet handle * @param val Value */ -void odp_packet_has_icmp_set(odp_packet_t pkt, int val); +void ODP_DEPRECATE(odp_packet_has_icmp_set)(odp_packet_t pkt, int val); /** * Clear flag for packet flow hash