DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ethdev: fix statistics description
@ 2016-08-26 10:08 Wei Dai
  2016-10-04  9:34 ` Thomas Monjalon
  0 siblings, 1 reply; 9+ messages in thread
From: Wei Dai @ 2016-08-26 10:08 UTC (permalink / raw)
  To: dev; +Cc: Wei Dai

Add comments to describe that not all statistics fields in
struct rte_eth_stats are supported by any type of network
interface card. If any statistics field is not supported,
its value is 0.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Wei Dai <wei.dai@intel.com>
---
 lib/librte_ether/rte_ethdev.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h
index b0fe033..653e36c 100644
--- a/lib/librte_ether/rte_ethdev.h
+++ b/lib/librte_ether/rte_ethdev.h
@@ -190,6 +190,9 @@ struct rte_mbuf;
 
 /**
  * A structure used to retrieve statistics for an Ethernet port.
+ * Not all statistics fields in struct rte_eth_stats are supported
+ * by any type of network interface card (NIC). If any statistics
+ * field is not supported, its value is 0 .
  */
 struct rte_eth_stats {
 	uint64_t ipackets;  /**< Total number of successfully received packets. */
-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-11-08 13:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-26 10:08 [dpdk-dev] [PATCH] ethdev: fix statistics description Wei Dai
2016-10-04  9:34 ` Thomas Monjalon
2016-11-02  8:28   ` Dai, Wei
2016-11-02  9:07     ` Mcnamara, John
2016-11-03  2:00       ` Remy Horton
2016-11-03  9:07         ` Morten Brørup
2016-11-02  9:21     ` Morten Brørup
2016-11-07 20:37       ` Thomas Monjalon
2016-11-08 13:33     ` Tahhan, Maryam

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).