[PATCH 1/3] ethdev: fix telemetry xstats return null with some PMDs

Stephen Hemminger stephen at networkplumber.org
Sat Apr 16 03:38:31 CEST 2022


On Sat, 16 Apr 2022 09:07:45 +0800
Chengwen Feng <fengchengwen at huawei.com> wrote:

> Currently the telemetry xstats uses rte_eth_xstats_get() to retrieve
> the number of elements. But the value to be returned when the parameter
> 'xstats' is NULL is not specified, some PMDs (eg. hns3/ipn3ke/mvpp2/
> axgbe) return zero while others return the required number of elements.

Lets fix the PMD's this impacts other code as well.


More information about the dev mailing list