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

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Thu Apr 21 08:49:08 CEST 2022


On 4/16/22 04:38, Stephen Hemminger wrote:
> 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.

+1


More information about the dev mailing list