From: Wei Dai Date: Fri, 26 Aug 2016 10:08:24 +0000 (+0800) Subject: ethdev: comment statistics field support X-Git-Tag: spdx-start~5349 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=083e2f26006b30585b47bd52e4c76a93ebfde0fa;hp=91cd905af929ca11ab2b10406fc2d7413dc30e41;p=dpdk.git 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 --- 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. */