From patchwork Wed Feb 7 11:00:07 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: 127156 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp362960ljc; Wed, 7 Feb 2018 03:11:32 -0800 (PST) X-Google-Smtp-Source: AH8x224rqzvmq15t2VjDZex01+0z5hEOjNjxteTgUznWxib8sbN/e0gENK6AI73CTHZLbKmkbdL+ X-Received: by 10.55.191.69 with SMTP id p66mr8644593qkf.315.1518001891883; Wed, 07 Feb 2018 03:11:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518001891; cv=none; d=google.com; s=arc-20160816; b=Y2t7ZAHWfnhBiPOE92TxNO019Rs4LYEehoE5zrGalDL+Ajg+M/FkJaWr8SJwud0nRW 8BQtC8tElcVkuWse/KgG8sYDZhBzjO0SfzULh3LY+J/VkrZlK8764JB0XXQCygKGrSPB mBOKNmD3vndtccHNh0Fvj5GdTs4oCDhmkUMubIqy02p8yDquHSL2pO0yyD9L52gTNw6J JwSK9+IVS72E+X7qMLW26+2JTMXIK9/w8zHvfsWRpdMYL/sfe+U7pZ9VQS6jZEkik6Zo IJtPqD4U7u8b5AYX1WJY1UI1lH44OeNoeNQl3culg7wikPY63NiLH7hj79kX1veh+WDM U/Fw== 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=I4Jth+WVVqLeLk0EMSYSrbU3H+p9VDtSKsC3hAbhCqM=; b=g29Kxb8gJ5h4eb/jmdhQRk60L/Zs7qxxNYteiy8Gw1WjIQCbsnkEa0eBZr8kDaUxG1 JcmvD09SmmFAeV6JU85XnrOFyxCrozm7voDE++MTuNNLAUafNHIqg5tUbK7TlUJGD8ru SPUYGjpRhwkkCsBZK1mDClyird94RpGN1mvAG1lcm9aPdffWttktzyw0yGIlu4qWoFhC Un1a3e4YF6LqjmM3WN//ilpT4qV1f0H/4OCJtjvaK0ymFRvq/4cDCxyPFFyo42edcMLQ bXL227H+eDqL3lqNfbh7vQ40UQ2CtU0vyXS3aYPc4PtNr5OclfIoIb4Cihnv0WG+CFGs e2OA== 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 b66si1202577qkd.296.2018.02.07.03.11.31; Wed, 07 Feb 2018 03:11: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 8763161835; Wed, 7 Feb 2018 11:11:31 +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 1D3FD617AF; Wed, 7 Feb 2018 11:03:59 +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 C5C1C60A6E; Wed, 7 Feb 2018 11:03:48 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id BB28560A6E for ; Wed, 7 Feb 2018 11:02:19 +0000 (UTC) Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 5B3D95D824A4 for ; Wed, 7 Feb 2018 14:02:17 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id zaERMd5EJI-2HTCsfFX; Wed, 07 Feb 2018 14:02:17 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LVw23zZMqp-1rVa9SEN; Wed, 07 Feb 2018 14:01:53 +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:07 +0300 Message-Id: <1518001208-29529-14-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 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: 802ddfc5ea6f47a8935993bf6f8c1675a4c94930 **/ include/odp/api/spec/packet_flags.h | 64 +++++++++---------------------------- 1 file changed, 15 insertions(+), 49 deletions(-) diff --git a/include/odp/api/spec/packet_flags.h b/include/odp/api/spec/packet_flags.h index 500ecc148..8ca46f3bf 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. @@ -411,29 +412,14 @@ 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 - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_arp_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l3_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_arp_set)(odp_packet_t pkt, int val); -/** - * Set flag for IPv4 - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_ipv4_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l3_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_ipv4_set)(odp_packet_t pkt, int val); -/** - * Set flag for IPv6 - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_ipv6_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l3_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_ipv6_set)(odp_packet_t pkt, int val); /** * Set flag for IP broadcast address @@ -475,37 +461,17 @@ 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 - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_udp_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l4_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_udp_set)(odp_packet_t pkt, int val); -/** - * Set flag for TCP - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_tcp_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l4_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_tcp_set)(odp_packet_t pkt, int val); -/** - * Set flag for SCTP - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_sctp_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l4_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_sctp_set)(odp_packet_t pkt, int val); -/** - * Set flag for ICMP - * - * @param pkt Packet handle - * @param val Value - */ -void odp_packet_has_icmp_set(odp_packet_t pkt, int val); +/** @deprecated Use odp_packet_l4_type_set instead */ +void ODP_DEPRECATE(odp_packet_has_icmp_set)(odp_packet_t pkt, int val); /** * Clear flag for packet flow hash