[dpdk-dev] [PATCH v5] net/pcap: improve rx statistics
Ferruh Yigit
ferruh.yigit at intel.com
Thu Sep 9 12:20:48 CEST 2021
On 9/9/2021 9:23 AM, Qiming Chen wrote:
> In the receiving direction, if alloc mbuf or jumbo process failed, there
> is no err_pkts count, which makes it difficult to locate the problem.
> Because alloc mbuf failed, the rx_nombuf field is counted.
>
> Signed-off-by: Qiming Chen <chenqiming_huawei at 163.com>
<...>
> @@ -742,7 +746,7 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
> {
> unsigned int i;
> unsigned long rx_packets_total = 0, rx_bytes_total = 0;
> - unsigned long rx_missed_total = 0;
> + unsigned long rx_missed_total = 0, rx_nombuf = 0, rx_err_total = 0;
Since all other variables for same purpose has '_total' suffix, let's add it to
the 'rx_nombuf' too.
And can you please start a new line for new two variables:
unsigned long rx_nombuf_total = 0, rx_err_total = 0;
More information about the dev
mailing list