From patchwork Wed Dec 13 13:00:09 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: 121771 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5446057qgn; Wed, 13 Dec 2017 05:05:09 -0800 (PST) X-Google-Smtp-Source: ACJfBotPBYgefscVTSbyXwreYejvVodso/RxPDakx/fDJsGjkgYwkZ5xb1+vtx8rw3JE+pV7u3qo X-Received: by 10.55.157.66 with SMTP id g63mr10268089qke.59.1513170309396; Wed, 13 Dec 2017 05:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513170309; cv=none; d=google.com; s=arc-20160816; b=bxm8wfx3U1y3zobidRASnNuDLhCXn+SQMDLPBM9qQahbKnywFz6Uaugh4slOJh6zx1 gupm3LECZnKxfMkvgOFMJ96yvOOrqGUxQgM3RGtDv8ceIOE7Y8fcRu1f6Qx/EFpXrFm4 LZJuHY/xuiPdgU88mu5zAol817nxV1Vrd9zW6Kq5F1VVIWMZHfOmEnNxBd7A/dRPyuco 31+w+Yf2v/EbsYxGEDINUzqzKfqAfNFNq5mz6F1+2IAbj9Ew533ah5OvDmZ1/6voVyXq 9AFSqRrP5NyVkAuRW/eLw89f4RLaHDzMHbo9gFCK3xrGaSMxTnboo6B3uJVkY5k/ab+Y 6XQw== 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=tdnFvoOs5JrjMvINYuLL1JGzNNL6a+XPEAhG6KhXrpA=; b=W0RpsBdd5eMf/Gdh3KKJpR9lg8z6RtELw4cUQX+2LKzE9jD7a107UukRDtclsV/GQn VtIonmQz5MgFe3eB4gFzjZW2zw2vs68fLS3oHaG9kp4D8thKuM/86UZW99ble7PNfS37 kShxrdiYOnNiEh8FoD4ZaA8V3/+uciWm9v2/OOs4ywZp20tJDuAbOL6Pf0pa3a7Ud6fl 0ZnSKJilQX9Aq2fl1W4sAbTMXPw5yzQUd1XwmbAxwGkG7SW1WlBrEmS/07WkJG6khUdS g/vmuTg11q/VBoiOFfwGoSrbtzZTIZ6NySA17mdqF4lydJKK8G+sZghqNzUOqEjoonwj 8YSA== 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 x3si391992qtf.197.2017.12.13.05.05.09; Wed, 13 Dec 2017 05:05:09 -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 E42DF608EE; Wed, 13 Dec 2017 13:05:08 +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,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 8D6A66093D; Wed, 13 Dec 2017 13:02:26 +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 1A30A607C5; Wed, 13 Dec 2017 13:02:07 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id DBCF5608EE for ; Wed, 13 Dec 2017 13:00:57 +0000 (UTC) Received: from mxback11j.mail.yandex.net (mxback11j.mail.yandex.net [IPv6:2a02:6b8:0:1619::84]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 607851240A50 for ; Wed, 13 Dec 2017 16:00:56 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback11j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xTbwEBnrgf-0uK8ZuZK; Wed, 13 Dec 2017 16:00:56 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZKo7wGnMCt-0nU0L3Gl; Wed, 13 Dec 2017 16:00:49 +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, 13 Dec 2017 16:00:09 +0300 Message-Id: <1513170009-9281-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513170009-9281-1-git-send-email-odpbot@yandex.ru> References: <1513170009-9281-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 338 Subject: [lng-odp] [PATCH API-NEXT v1 6/6] api: pktio: disable odp_pktio_parser_layer_t for non-deprecated builds 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 Finally put old odp_pktio_parser_layer_t and related values under ODP_DEPRECATED_API guard. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 338 (lumag:pktio_parse_layer) ** https://github.com/Linaro/odp/pull/338 ** Patch: https://github.com/Linaro/odp/pull/338.patch ** Base sha: d96a8207591fbcaac25b79286d7d72a537354c1f ** Merge commit sha: 874b90ec6730e9189edd69774044ef32d7f0d95f **/ include/odp/api/spec/packet_io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index bf30877f5..43b0e352b 100644 --- a/include/odp/api/spec/packet_io.h +++ b/include/odp/api/spec/packet_io.h @@ -408,8 +408,9 @@ typedef union odp_pktout_config_opt_t { * * @deprecated Use odp_proto_layer_t instead */ -typedef odp_proto_layer_t odp_pktio_parser_layer_t; +typedef odp_proto_layer_t ODP_DEPRECATE(odp_pktio_parser_layer_t); +#if ODP_DEPRECATED_API /** No layers * @deprecated Use ODP_PROTO_LAYER_NONE, instead */ #define ODP_PKTIO_PARSER_LAYER_NONE ODP_PROTO_LAYER_NONE @@ -429,6 +430,7 @@ typedef odp_proto_layer_t odp_pktio_parser_layer_t; /** All layers * @deprecated Use ODP_PROTO_LAYER_ALL instead */ #define ODP_PKTIO_PARSER_LAYER_ALL ODP_PROTO_LAYER_ALL +#endif /** * Parser configuration