DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: maryam.tahhan@intel.com, harry.van.haaren@intel.com
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] ethdev: remove deprecated statistics
Date: Tue, 19 Apr 2016 16:13:58 +0200	[thread overview]
Message-ID: <2181162.yfzPt0qCzR@xps13> (raw)
In-Reply-To: <1461074613-32360-1-git-send-email-thomas.monjalon@6wind.com>

2016-04-19 16:03, Thomas Monjalon:
> Some statistics were deprecated since release 2.1 (49f386542af4).
> 
> The last deprecated counter to be used was imcasts.
> 
> The new counters should be added to extended statistics.
> 
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
[...]
> --- a/lib/librte_ether/rte_ethdev.h
> +++ b/lib/librte_ether/rte_ethdev.h
> @@ -200,27 +200,9 @@ 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 __rte_deprecated;
> -	/**< Deprecated; Total of RX packets with CRC error. */
> -	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;
> -	/**< Deprecated; Total number of multicast received packets. */
>  	uint64_t rx_nombuf; /**< Total number of RX mbuf allocation failures. */
> -	uint64_t fdirmatch __rte_deprecated;
> -	/**< Deprecated; Total number of RX packets matching a filter. */
> -	uint64_t fdirmiss __rte_deprecated;
> -	/**< Deprecated; Total number of RX packets not matching any filter. */
> -	uint64_t tx_pause_xon __rte_deprecated;
> -	 /**< Deprecated; Total nb. of XON pause frame sent. */
> -	uint64_t rx_pause_xon __rte_deprecated;
> -	/**< Deprecated; Total nb. of XON pause frame received. */
> -	uint64_t tx_pause_xoff __rte_deprecated;
> -	/**< Deprecated; Total nb. of XOFF pause frame sent. */
> -	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. */
>  	uint64_t q_opackets[RTE_ETHDEV_QUEUE_STAT_CNTRS];

I suggest to remove also the loopback statistics which are implemented only
for igbvf and available as extended stats:

--- a/lib/librte_ether/rte_ethdev.h
+++ b/lib/librte_ether/rte_ethdev.h
@@ -213,14 +213,6 @@ struct rte_eth_stats {
        /**< Total number of successfully transmitted queue bytes. */
        uint64_t q_errors[RTE_ETHDEV_QUEUE_STAT_CNTRS];
        /**< Total number of queue packets received that are dropped. */
-       uint64_t ilbpackets;
-       /**< Total number of good packets received from loopback,VF Only */
-       uint64_t olbpackets;
-       /**< Total number of good packets transmitted to loopback,VF Only */
-       uint64_t ilbbytes;
-       /**< Total number of good bytes received from loopback,VF Only */
-       uint64_t olbbytes;
-       /**< Total number of good bytes transmitted to loopback,VF Only */
 };

--- a/drivers/net/e1000/igb_ethdev.c
+++ b/drivers/net/e1000/igb_ethdev.c
@@ -1805,10 +1805,6 @@ eth_igbvf_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats)
        rte_stats->ibytes = hw_stats->gorc;
        rte_stats->opackets = hw_stats->gptc;
        rte_stats->obytes = hw_stats->gotc;
-       rte_stats->ilbpackets = hw_stats->gprlbc;
-       rte_stats->ilbbytes = hw_stats->gorlbc;
-       rte_stats->olbpackets = hw_stats->gptlbc;
-       rte_stats->olbbytes = hw_stats->gotlbc;
 }

I'll send a v2 if no objection.

  reply	other threads:[~2016-04-19 14:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-19 14:03 Thomas Monjalon
2016-04-19 14:13 ` Thomas Monjalon [this message]
2016-04-20  9:47 ` [dpdk-dev] [PATCH v2] " Thomas Monjalon
2016-04-20 10:54   ` Remy Horton
2016-04-22 13:48     ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2181162.yfzPt0qCzR@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=harry.van.haaren@intel.com \
    --cc=maryam.tahhan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).