From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 48E2F8E97 for ; Sat, 17 Oct 2015 02:14:38 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so36041743pac.3 for ; Fri, 16 Oct 2015 17:14:37 -0700 (PDT) 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=ogwa6UYupBGFeEVf59ptibFY7Ydlz1nHP2fN0vse4WY=; b=FzThEnNVYFLLd/QQdB7DLJfUX/yrJhZfRPRJ1uGKY7CPlCbJv99mYLA+Nw4EJ9OWgO ELxapAjxKZ5rD83TATR/2f7PQaC6UYrg/mR5W4dTwGV0F7i3tSqJFt+CYeSoFUcfjAVq 4LzSA7Wjexu+FMtOJXtqZewvv167qCwGLK9ulylTmK/gXvTyIhzkHh9Ec6EP9MvbwKDy aRUSIiN7vc2Qtf97rJ0rPGW/Lv+p1rPR8ktsEzNAB1GEAqUzgtEjNHErwCiafHPOBrLn kL+kHuGAUo5ogtLdsDar2a4vXCR1Q27n3cRP7rQOE8m2plJIxYo37H0rFIIsXy19dXaM TzAg== X-Gm-Message-State: ALoCoQmOax+28gxGAQsRQzsLtmjtI9/isJYAwNrIeJULoBeeRawpfVTiRjL0Gi+oOaPBpnmI7w9J X-Received: by 10.68.242.2 with SMTP id wm2mr19841550pbc.31.1445040877700; Fri, 16 Oct 2015 17:14:37 -0700 (PDT) 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 qy7sm23431097pab.37.2015.10.16.17.14.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2015 17:14:37 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 16 Oct 2015 17:14:42 -0700 Message-Id: <1445040882-31006-10-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445040882-31006-1-git-send-email-stephen@networkplumber.org> References: <1445040882-31006-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 9/9] 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: Sat, 17 Oct 2015 00:14:38 -0000 From: Stephen Hemminger 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 | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 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 8a8c82b..4919963 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -194,28 +194,28 @@ struct rte_eth_stats { uint64_t opackets; /**< Total number of successfully transmitted packets.*/ uint64_t ibytes; /**< Total number of successfully received bytes. */ uint64_t obytes; /**< Total number of successfully transmitted bytes. */ - uint64_t imissed; - /**< Deprecated; Total of RX missed packets (e.g full FIFO). */ - uint64_t ibadcrc; + uint64_t imissed __rte_deprecated; + /**< Deprecated: Total of RX missed packets (e.g full FIFO). */ + 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; + uint64_t imcasts __rte_deprecated; /**< Deprecated; 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