numam-dpdk/drivers/net/ipn3ke
Chengwen Feng e17cb41db7 net/ipn3ke: fix xstats get return if xstats is null
Many user (e.g. telemetry) invokes rte_eth_xstats_get(port_id, NULL, 0)
to retrieve the required number of elements, but currently ipn3ke PMD
returns zero when xstats is null.

Dedicated check for xstats vs null is not required, since ethdev layer
guarantees that it may be null only if number of entries n is 0 (which
is definitely smaller than total xstats count).

Fixes: 5a6d883878 ("net/ipn3ke: implement statistics")
Cc: stable@dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2022-05-20 16:45:44 +02:00
..
ipn3ke_ethdev.c drivers/net: use internal function to get ethdev struct 2022-02-04 14:44:13 +01:00
ipn3ke_ethdev.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
ipn3ke_flow.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
ipn3ke_flow.h net/ipn3ke: support flow API 2019-04-19 14:51:54 +02:00
ipn3ke_logs.h net/ipn3ke: add new driver 2019-04-19 14:51:54 +02:00
ipn3ke_rawdev_api.h net/ipn3ke: remove configuration for i40e port bonding 2019-11-20 17:36:05 +01:00
ipn3ke_representor.c net/ipn3ke: fix xstats get return if xstats is null 2022-05-20 16:45:44 +02:00
ipn3ke_tm.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
meson.build fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
version.map net/ipn3ke: change experimental symbol to internal 2021-08-31 16:00:04 +02:00