From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by dpdk.org (Postfix) with ESMTP id 85A6D8E97 for ; Fri, 6 Nov 2015 02:04:35 +0100 (CET) Received: by pasz6 with SMTP id z6so107811442pas.2 for ; Thu, 05 Nov 2015 17:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4yDfRS3/XtospKSObjQlL9GWgPkNK2NY+kD0hoUtgMs=; b=Nt8SnCfF9ufhI7ZeV03c5MpFg8LpJY3w1DNug/PjbXiwtjSbnqJs+kIF/kTGU8naMe ptBezRbRmGZt1TUnQ3s+dh2okXDP9PNO6wAtI990TRR3QJEvN3mPyKds34/zJLJBqX97 yIZdKTtBBTr9H+5tfgo24rDbjFQ9wZXfESvvj+svWtmONkQ2/OnZDQXp/XyaHqLQGolk F052g0poZBWWPd49bmCMhljH6ob9r5GTdqX2FAa7zIS655Bt/6vKEiuqt7vxJ4QPKmtP KQCimSjaxIc4wRrp8BjxOPGpx7KpKWNPPdGLc14q6ygwGuqnB7R13NR0ywPka1I0DlBX OYiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4yDfRS3/XtospKSObjQlL9GWgPkNK2NY+kD0hoUtgMs=; b=RXRC5YDUZ+0WvJzSDa4b/cA7ynf8s5zrjUZOhnavtyL1KZ9Zi08ejD/FZlRkOFfF8m XMI0NDF2hsEgBzIKuQoNzBjglX87z1y5nKg+/8f8IMREuJXDEsI0lzEZ+Ls5x8F2RCGv SOYe1eiYrjhIpjx4bB9nOcIj4r9o/PoIrC/ckxTkMfUqHtWlQjYQFf5wl0Z76GrIPRci NTuCODGXQgJR8Pk53pvYKc2vKKjgPwCsofKwVTCalIPxefgtxMu/yDnzpOzShjEvXI++ s1HZ/gI8JDHwnknnrHuNoVYJHpTOrvKoDuF4pPzCOI5BcqshzkbfNeay3jN2SC3rPeQQ 7V/A== X-Gm-Message-State: ALoCoQnfJPqCBIWyzK90Yhox564AOncGG0PPjtj52JwwpRrcrcgbNmnbvO0dQgBVyfZPmnq9ifbs X-Received: by 10.68.184.132 with SMTP id eu4mr13409615pbc.122.1446771874893; Thu, 05 Nov 2015 17:04:34 -0800 (PST) Received: from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id qn5sm10105951pac.41.2015.11.05.17.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Nov 2015 17:04:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 5 Nov 2015 17:04:39 -0800 Message-Id: <1446771879-3979-8-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446771879-3979-1-git-send-email-stephen@networkplumber.org> References: <1446771879-3979-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 7/7] rte_ether: mark deprecated statistics with attribute X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2015 01:04:35 -0000 Use deprecated attribute to highlight any use of fields that are marked as going away in the rte_ether device statistics. Signed-off-by: Stephen Hemminger --- lib/librte_eal/common/include/rte_common.h | 3 +++ lib/librte_ether/rte_ethdev.h | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 3121314..f8ca6f3 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -69,6 +69,9 @@ typedef uint32_t unaligned_uint32_t; typedef uint16_t unaligned_uint16_t; #endif +/******* Macro to mark functions and fields scheduled for removal *****/ +#define __rte_deprecated __attribute__((__deprecated__)) + /*********** Macros to eliminate unused variable warnings ********/ /** diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index f653e37..49a6889 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -198,25 +198,25 @@ struct rte_eth_stats { /**< Total of RX packets dropped by the HW, * because there are no available mbufs (i.e. RX queues are full). */ - uint64_t ibadcrc; + uint64_t ibadcrc __rte_deprecated; /**< Deprecated; Total of RX packets with CRC error. */ - uint64_t ibadlen; + uint64_t ibadlen __rte_deprecated; /**< Deprecated; Total of RX packets with bad length. */ uint64_t ierrors; /**< Total number of erroneous received packets. */ uint64_t oerrors; /**< Total number of failed transmitted packets. */ uint64_t imcasts; /**< Total number of multicast received packets. */ uint64_t rx_nombuf; /**< Total number of RX mbuf allocation failures. */ - uint64_t fdirmatch; + uint64_t fdirmatch __rte_deprecated; /**< Deprecated; Total number of RX packets matching a filter. */ - uint64_t fdirmiss; + uint64_t fdirmiss __rte_deprecated; /**< Deprecated; Total number of RX packets not matching any filter. */ - uint64_t tx_pause_xon; + uint64_t tx_pause_xon __rte_deprecated; /**< Deprecated; Total nb. of XON pause frame sent. */ - uint64_t rx_pause_xon; + uint64_t rx_pause_xon __rte_deprecated; /**< Deprecated; Total nb. of XON pause frame received. */ - uint64_t tx_pause_xoff; + uint64_t tx_pause_xoff __rte_deprecated; /**< Deprecated; Total nb. of XOFF pause frame sent. */ - uint64_t rx_pause_xoff; + uint64_t rx_pause_xoff __rte_deprecated; /**< Deprecated; Total nb. of XOFF pause frame received. */ uint64_t q_ipackets[RTE_ETHDEV_QUEUE_STAT_CNTRS]; /**< Total number of queue RX packets. */ -- 2.1.4