numam-dpdk/drivers/net/mlx5
Geoffrey Le Gourriérec eadc35df59 net/mlx5: fix statistics read on Linux
This patch encompasses a few fixes carried by a previous patch
that aimed to support bonding device stats counting.

- If mlx5_os_read_dev_stat fails, it returns 1 instead of a
  negative value, causing mlx5_xstats_get to return an invalid
  number of counters. Since this error is not blocking, do not
  mess ret value with mlx5_os_read_dev_stat returned value.

  This allows avoiding the very annoying log:
  "n_xstats != n_xstats_names => skipping"

- Invert the check for mlx5_os_read_dev_stat(), currently leading
  us to store the result if the function failed, and use a
  backup value if it succeeded, which is the opposite of what we
  actually want. Revert to the original (correct) test.

- Add missing test on _mlx5_os_read_dev_counters() to prevent
  using trash stats values.

Fixes: 7ed15acdcd ("net/mlx5: improve xstats of bonding port")
Cc: stable@dpdk.org

Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Signed-off-by: Geoffrey Le Gourriérec <geoffrey.le_gourrierec@6wind.com>
Tested-by: Bassam Zaid AlKilani <bzalkilani@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2022-06-02 17:01:11 +02:00
..
linux net/mlx5: fix statistics read on Linux 2022-06-02 17:01:11 +02:00
windows net/mlx5: support MTU settings on Windows 2022-04-21 12:47:43 +02:00
meson.build net/mlx5: add HW steering low-level abstract stub 2022-02-24 22:10:16 +01:00
mlx5_defs.h net/mlx5: add Rx drop counters to xstats 2022-06-01 09:49:44 +02:00
mlx5_devx.c net/mlx5: support ESP SPI match and RSS hash 2022-05-15 09:38:59 +02:00
mlx5_devx.h net/mlx5: enable DevX Tx queue creation 2021-10-21 09:31:13 +02:00
mlx5_dr.c net/mlx5: add HW steering low-level abstract stub 2022-02-24 22:10:16 +01:00
mlx5_dr.h net/mlx5: add HW steering low-level abstract stub 2022-02-24 22:10:16 +01:00
mlx5_ethdev.c net/mlx5: fix configuration without Rx queue 2022-03-07 11:49:43 +01:00
mlx5_flow_aso.c net/mlx5: support previous meter color aware 2022-06-01 09:49:30 +02:00
mlx5_flow_dv.c net/mlx5: validate yellow meter action 2022-06-01 09:49:41 +02:00
mlx5_flow_flex.c net/mlx5: fix flex item header length translation 2022-03-02 17:36:47 +01:00
mlx5_flow_hw.c net/mlx5: add header reformat HW steering action 2022-02-24 22:10:23 +01:00
mlx5_flow_meter.c net/mlx5: support yellow meter action in hierarchy 2022-06-01 09:49:36 +02:00
mlx5_flow_verbs.c net/mlx5: fix MPLS/GRE Verbs spec ordering 2022-03-07 11:49:10 +01:00
mlx5_flow.c net/mlx5: support ESP SPI match and RSS hash 2022-05-15 09:38:59 +02:00
mlx5_flow.h net/mlx5: support ESP SPI match and RSS hash 2022-05-15 09:38:59 +02:00
mlx5_mac.c net/mlx5: support Sub-Function 2021-07-22 00:11:14 +02:00
mlx5_rss.c net/mlx5: fix RETA update without stopping device 2021-11-10 15:44:44 +01:00
mlx5_rx.c remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
mlx5_rx.h net/mlx5: fix Rx/Tx stats concurrency 2022-04-21 12:50:26 +02:00
mlx5_rxmode.c net/mlx5: concentrate all device configurations 2022-02-21 11:36:51 +01:00
mlx5_rxq.c net/mlx5: fix LRO validation in Rx setup 2022-04-26 11:52:18 +02:00
mlx5_rxtx_vec_altivec.h avoid AltiVec keyword vector 2022-05-25 11:49:39 +02:00
mlx5_rxtx_vec_neon.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_rxtx_vec_sse.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_rxtx_vec.c net/mlx5: improve stride parameter names 2021-12-05 12:22:09 +01:00
mlx5_rxtx_vec.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
mlx5_rxtx.c net/mlx5: move Rx queue DevX resource 2021-11-04 22:55:48 +01:00
mlx5_rxtx.h common/mlx5: share MR mempool registration 2021-10-21 15:58:00 +02:00
mlx5_stats.c net/mlx5: fix Rx/Tx stats concurrency 2022-04-21 12:50:26 +02:00
mlx5_trigger.c net/mlx5: fix link status change detection 2022-03-01 16:54:07 +01:00
mlx5_tx_empw.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx_mpw.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx_nompw.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx_txpp.c net/mlx5: separate Tx burst functions to different files 2021-04-15 08:24:59 +02:00
mlx5_tx.c net/mlx5: separate per port configuration 2022-02-21 11:36:54 +01:00
mlx5_tx.h net/mlx5: fix Rx/Tx stats concurrency 2022-04-21 12:50:26 +02:00
mlx5_txpp.c net/mlx5: add shared device context config structure 2022-02-21 11:36:52 +01:00
mlx5_txq.c net/mlx5: optimize queue type checks 2022-02-25 17:33:31 +01:00
mlx5_utils.c net/mlx5: fix indexed pool fetch overlap 2022-03-01 22:24:22 +01:00
mlx5_utils.h net/mlx5: remove unused function 2022-02-23 15:57:33 +01:00
mlx5_vlan.c net/mlx5: concentrate all device configurations 2022-02-21 11:36:51 +01:00
mlx5.c net/mlx5: support yellow meter action in hierarchy 2022-06-01 09:49:36 +02:00
mlx5.h net/mlx5: support yellow meter action in hierarchy 2022-06-01 09:49:36 +02:00
rte_pmd_mlx5.h net/mlx5: add external Rx queue mapping API 2022-02-25 17:33:31 +01:00
version.map net/mlx5: add external Rx queue mapping API 2022-02-25 17:33:31 +01:00