numam-dpdk/drivers/net/hns3
Chengwen Feng e15401f362 net/hns3: 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 hns3 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: 8839c5e202 ("net/hns3: support device stats")
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:42 +02:00
..
hns3_cmd.c net/hns3: remove logging memory addresses 2022-01-27 14:39:13 +01:00
hns3_cmd.h net/hns3: remove duplicate macro definition 2022-03-02 12:23:19 +01:00
hns3_common.c net/hns3: extract common function to obtain revision ID 2022-01-27 14:39:13 +01:00
hns3_common.h net/hns3: extract common function to obtain revision ID 2022-01-27 14:39:13 +01:00
hns3_dcb.c net/hns3: remove unused variables 2022-01-27 14:39:12 +01:00
hns3_dcb.h net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_ethdev_dump.c net/hns3: fix device info dump 2022-05-05 14:57:10 +02:00
hns3_ethdev_vf.c net/hns3: remove unnecessary RSS switch 2022-05-12 15:56:59 +02:00
hns3_ethdev.c net/hns3: remove unnecessary RSS switch 2022-05-12 15:56:59 +02:00
hns3_ethdev.h net/hns3: remove unnecessary RSS switch 2022-05-12 15:56:59 +02:00
hns3_fdir.c net/hns3: remove non re-entrant strerror call 2022-01-27 14:39:13 +01:00
hns3_fdir.h net/hns3: support indirect counter flow action 2022-01-27 14:39:13 +01:00
hns3_flow.c net/hns3: remove unnecessary RSS switch 2022-05-12 15:56:59 +02:00
hns3_flow.h net/hns3: support indirect counter flow action 2022-01-27 14:39:13 +01:00
hns3_intr.c net/hns3: extract reset failure handling to function 2022-01-27 14:39:12 +01:00
hns3_intr.h net/hns3: fix TM QCN error event report by MSI-X 2021-05-11 19:34:17 +02:00
hns3_logs.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_mbx.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
hns3_mbx.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
hns3_mp.c net/hns3: fix Rx/Tx functions update 2022-01-26 15:52:09 +01:00
hns3_mp.h net/hns3: refactor multi-process initialization 2021-11-04 15:11:32 +01:00
hns3_ptp.c net/hns3: fix vector Rx/Tx when PTP enabled 2022-01-26 15:52:09 +01:00
hns3_regs.c net/hns3: support get device version when dump register 2021-04-08 18:57:09 +02:00
hns3_regs.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_rss.c net/hns3: remove unnecessary RSS switch 2022-05-12 15:56:59 +02:00
hns3_rss.h net/hns3: remove redundant RSS tuple field 2022-05-12 10:28:54 +02:00
hns3_rxtx_vec_neon.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
hns3_rxtx_vec_sve.c mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
hns3_rxtx_vec.c net/hns3: fix vector Rx/Tx when PTP enabled 2022-01-26 15:52:09 +01:00
hns3_rxtx_vec.h net/hns3: optimize Tx performance by mbuf fast free 2021-11-16 16:39:20 +01:00
hns3_rxtx.c net/hns3: fix mbuf free on Tx done cleanup 2022-05-12 10:28:54 +02:00
hns3_rxtx.h net/hns3: fix pseudo-sharing between threads 2022-05-12 10:28:54 +02:00
hns3_stats.c net/hns3: fix xstats get return if xstats is null 2022-05-20 16:45:42 +02:00
hns3_stats.h net/hns3: fix MAC and queues HW statistics overflow 2022-05-12 10:28:54 +02:00
hns3_tm.c net/hns3: remove PF/VF duplicate code 2021-11-08 15:59:14 +01:00
hns3_tm.h net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
meson.build net/hns3: dump device basic info 2022-02-11 18:49:03 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00