From: Remy Horton <remy.horton@intel.com>
To: "David Harton (dharton)" <dharton@cisco.com>,
"dev@dpdk.org" <dev@dpdk.org>,
Helin Zhang <helin.zhang@intel.com>
Subject: Re: [RFC PATCH v1 2/3] drivers/net/ixgbe: change xstats to use integers
Date: Tue, 03 May 2016 13:22:53 +0100 [thread overview]
Message-ID: <5728981D.2020003@intel.com> (raw)
In-Reply-To: <34cbe07723f64e9f926666164d9d5319@XCH-RCD-016.cisco.com>
On 29/04/2016 14:43, David Harton (dharton) wrote:
[..]
>> + /* RX Priority Stats */
>> + for (stat = 0; stat < IXGBE_NB_RXQ_PRIO_STATS; stat++) {
>> + for (i = 0; i < 8; i++) {
>
> 8 seems magical. Is there a constant somewhere that can be used?
Not that I'm aware of. I've made it a #define as a small cleanup.
>> +static int ixgbevf_dev_xstats_names(__rte_unused struct rte_eth_dev *dev,
>> + struct rte_eth_xstats_name *ptr_names, __rte_unused unsigned limit)
>> +{
>> + unsigned i;
>> +
>> + if (limit < IXGBEVF_NB_XSTATS)
>
> Think this check has to be removed since rte_eth_xstats_count() calls with
> limit == 0.
Well spotted. It should only error-out if ptr_names is non-NULL.
As an aside, I am wondering whether getting stats counts should itself
be a seperate driver hook.
..Remy
next prev parent reply other threads:[~2016-05-03 12:23 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-15 14:44 [RFC PATCH v1 0/3] Remove string operations from xstats Remy Horton
2016-04-15 14:44 ` [RFC PATCH v1 1/3] rte: change xstats to use integer keys Remy Horton
2016-04-29 13:17 ` David Harton (dharton)
2016-04-15 14:44 ` [RFC PATCH v1 2/3] drivers/net/ixgbe: change xstats to use integers Remy Horton
2016-04-29 13:43 ` David Harton (dharton)
2016-05-03 12:22 ` Remy Horton [this message]
2016-05-03 13:40 ` David Harton (dharton)
2016-04-15 14:44 ` [RFC PATCH v1 3/3] examples/ethtool: add xstats display command Remy Horton
2016-04-20 16:03 ` [RFC PATCH v1 0/3] Remove string operations from xstats David Harton (dharton)
2016-04-20 16:49 ` Mcnamara, John
2016-04-22 15:04 ` David Harton (dharton)
2016-04-28 14:56 ` Tahhan, Maryam
2016-04-28 15:58 ` David Harton (dharton)
2016-04-29 10:21 ` Remy Horton
2016-04-29 12:15 ` David Harton (dharton)
2016-04-29 12:52 ` David Harton (dharton)
2016-05-06 11:11 ` [RFC PATCH v2 " Remy Horton
2016-05-06 11:11 ` [RFC PATCH v2 1/3] rte: change xstats to use integer keys Remy Horton
2016-05-09 13:59 ` David Harton (dharton)
2016-05-10 8:58 ` Remy Horton
2016-05-12 16:17 ` Thomas Monjalon
2016-05-16 10:47 ` Tahhan, Maryam
2016-05-18 8:31 ` Tahhan, Maryam
2016-05-18 8:45 ` Remy Horton
2016-05-06 11:11 ` [RFC PATCH v2 2/3] drivers/net/ixgbe: change xstats to use integer id Remy Horton
2016-05-09 14:06 ` David Harton (dharton)
2016-05-18 8:41 ` Tahhan, Maryam
2016-05-06 11:11 ` [RFC PATCH v2 3/3] examples/ethtool: add xstats display command Remy Horton
2016-05-09 14:08 ` David Harton (dharton)
2016-05-18 8:42 ` Tahhan, Maryam
2016-05-16 10:42 ` [RFC PATCH v2 0/3] Remove string operations from xstats Tahhan, Maryam
2016-05-18 10:12 ` Remy Horton
2016-05-30 10:48 ` [PATCH v3 00/10] " Remy Horton
2016-05-30 10:48 ` [PATCH v3 01/10] rte: change xstats to use integer ids Remy Horton
2016-06-08 9:37 ` Thomas Monjalon
2016-06-08 11:16 ` Remy Horton
2016-06-08 12:22 ` Thomas Monjalon
2016-05-30 10:48 ` [PATCH v3 02/10] drivers/net/ixgbe: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 03/10] drivers/net/e1000: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 04/10] drivers/net/fm10k: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 05/10] drivers/net/i40e: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 06/10] drivers/net/virtio: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 07/10] app/test-pmd: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 08/10] app/proc_info: " Remy Horton
2016-05-30 10:48 ` [PATCH v3 09/10] remove name field from struct rte_eth_xstats Remy Horton
2016-06-08 12:23 ` Thomas Monjalon
2016-05-30 10:48 ` [PATCH v3 10/10] doc: update xstats documentation Remy Horton
2016-06-09 8:48 ` Mcnamara, John
2016-06-06 12:45 ` [PATCH v3 00/10] Remove string operations from xstats David Harton (dharton)
2016-06-13 15:51 ` [PATCH v4 0/8] " Remy Horton
2016-06-13 15:51 ` [PATCH v4 1/8] rte: change xstats to use integer ids Remy Horton
2016-06-15 9:19 ` Thomas Monjalon
2016-06-13 15:51 ` [PATCH v4 2/8] drivers/net/ixgbe: " Remy Horton
2016-06-13 15:51 ` [PATCH v4 3/8] drivers/net/e1000: " Remy Horton
2016-06-13 15:51 ` [PATCH v4 4/8] drivers/net/fm10k: " Remy Horton
2016-06-13 15:51 ` [PATCH v4 5/8] drivers/net/i40e: " Remy Horton
2016-06-13 15:51 ` [PATCH v4 6/8] drivers/net/virtio: " Remy Horton
2016-06-13 15:52 ` [PATCH v4 7/8] rte: change xstats usage to new API Remy Horton
2016-06-15 9:13 ` Thomas Monjalon
2016-06-13 15:52 ` [PATCH v4 8/8] doc: update xstats documentation Remy Horton
2016-06-14 14:06 ` Mcnamara, John
2016-06-15 15:25 ` [PATCH v5 0/7] Remove string operations from xstats Remy Horton
2016-06-15 15:25 ` [PATCH v5 1/7] rte: change xstats to use integer ids Remy Horton
2016-06-15 15:25 ` [PATCH v5 2/7] drivers/net/ixgbe: " Remy Horton
2016-06-15 15:25 ` [PATCH v5 3/7] drivers/net/e1000: " Remy Horton
2016-06-15 15:25 ` [PATCH v5 4/7] drivers/net/fm10k: " Remy Horton
2016-06-15 15:25 ` [PATCH v5 5/7] drivers/net/i40e: " Remy Horton
2016-06-15 15:25 ` [PATCH v5 6/7] drivers/net/virtio: " Remy Horton
2016-06-20 10:43 ` Yuanhan Liu
2016-06-15 15:25 ` [PATCH v5 7/7] rte: change xstats usage to new API Remy Horton
2016-06-16 16:02 ` [PATCH v5 0/7] Remove string operations from xstats 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=5728981D.2020003@intel.com \
--to=remy.horton@intel.com \
--cc=dev@dpdk.org \
--cc=dharton@cisco.com \
--cc=helin.zhang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.