From: Viacheslav Galaktionov Date: Wed, 20 Jan 2021 12:44:17 +0000 (+0300) Subject: ethdev: clarify what is included in generic byte statistics X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=061abae299c2a9deaa1d6a9e66a543b9dc05cec3;p=dpdk.git ethdev: clarify what is included in generic byte statistics Different hardware gathers statistics differently, so some general rules need to be established. Signed-off-by: Viacheslav Galaktionov Signed-off-by: Andrew Rybchenko Reviewed-by: Ferruh Yigit --- diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index 89b8ba2fc4..d36d3a424c 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -241,6 +241,9 @@ void rte_eth_iterator_cleanup(struct rte_dev_iterator *iter); * 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. + * All byte-related statistics do not include Ethernet FCS regardless + * of whether these bytes have been delivered to the application + * (see DEV_RX_OFFLOAD_KEEP_CRC). */ struct rte_eth_stats { uint64_t ipackets; /**< Total number of successfully received packets. */