From 083e2f26006b30585b47bd52e4c76a93ebfde0fa Mon Sep 17 00:00:00 2001 From: Wei Dai Date: Fri, 26 Aug 2016 18:08:24 +0800 Subject: [PATCH 1/1] ethdev: comment statistics field support 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. Signed-off-by: Wei Dai --- 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 38641e842f..96781792da 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.20.1