numam-dpdk/drivers/net
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
..
af_packet net/af_packet: fix ignoring full ring on Tx 2021-11-04 12:56:32 +01:00
af_xdp net/af_xdp: fix shared UMEM fill queue reserve 2022-03-14 10:48:18 +01:00
ark net/ark: support multi-port packet generation 2022-03-03 12:56:42 +01:00
atlantic fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
avp drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
axgbe net/axgbe: fix xstats get return if xstats is null 2022-05-20 16:45:48 +02:00
bnx2x ethdev: introduce generic dummy packet burst function 2022-02-11 21:17:34 +01:00
bnxt net/bnxt: remove some dead code 2022-05-23 02:48:42 +02:00
bonding net/bonding: fix mbuf fast free usage 2022-05-25 18:01:33 +02:00
cnxk net/cnxk: fix possible null dereference in telemetry 2022-05-20 16:45:53 +02:00
cxgbe net/cxgbe: read firmware configuration file from filesystem 2022-05-17 18:50:51 +02:00
dpaa net/dpaa: fix event queue detach 2022-05-10 15:43:09 +02:00
dpaa2 net/dpaa2: support ESP in packet type parsing 2022-05-10 15:43:09 +02:00
e1000 fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
ena net/ena: update version to 2.6.0 2022-02-23 19:01:03 +01:00
enetc net/enetc: support VF 2022-01-20 16:24:09 +01:00
enetfec fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
enic net/enic: fix dereference before null check 2022-02-15 13:54:39 +01:00
failsafe net/failsafe: fix secondary process probe 2021-11-17 13:03:55 +01:00
fm10k fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
hinic remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
hns3 net/hns3: fix xstats get return if xstats is null 2022-05-20 16:45:42 +02:00
i40e avoid AltiVec keyword vector 2022-05-25 11:49:39 +02:00
iavf net/iavf: improve performance of Rx timestamp offload 2022-05-09 03:53:22 +02:00
ice net/ice: support power management in DCF mode 2022-05-09 03:54:24 +02:00
igc remove unnecessary null checks 2022-02-12 12:07:48 +01:00
ionic remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
ipn3ke net/ipn3ke: fix xstats get return if xstats is null 2022-05-20 16:45:44 +02:00
ixgbe net/ixgbe: promote MDIO API 2022-05-09 03:51:51 +02:00
kni net/kni: fix config initialization 2022-03-03 12:30:51 +01:00
liquidio net/liquidio: remove unused counter 2021-11-16 13:01:52 +01:00
memif net/memif: fix overwriting of head segment 2022-05-25 23:11:18 +02:00
mlx4 ethdev: introduce generic dummy packet burst function 2022-02-11 21:17:34 +01:00
mlx5 net/mlx5: fix statistics read on Linux 2022-06-02 17:01:11 +02:00
mvneta fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mvpp2 net/mvpp2: fix xstats get return if xstats is null 2022-05-20 16:45:46 +02:00
netvsc net/netvsc: fix hot adding multiple VF PCI devices 2022-04-29 23:36:59 +02:00
nfb net/nfb: support more MAC addresses 2022-02-15 14:53:41 +01:00
nfp net/nfp: fix disabling VLAN stripping 2022-05-31 15:03:02 +02:00
ngbe net/ngbe: redesign internal PHY init flow 2022-05-31 09:42:16 +02:00
null remove unnecessary null checks 2022-02-12 12:07:48 +01:00
octeontx remove unnecessary null checks 2022-02-12 12:07:48 +01:00
octeontx_ep remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
pcap build: cleanup libpcap dependent components 2021-11-10 11:42:34 +01:00
pfe ethdev: introduce generic dummy packet burst function 2022-02-11 21:17:34 +01:00
qede net/qede: fix maximum Rx packet length 2022-03-10 08:40:37 +01:00
ring net/ring: support promisc and allmulticast 2022-02-11 20:56:48 +01:00
sfc net/sfc: allow to control the represented entity MAC address 2022-05-31 18:50:00 +02:00
softnic sched: enable traffic class oversubscription unconditionally 2022-02-24 23:44:21 +01:00
tap net/tap: fix interrupt handler freeing 2022-05-12 10:11:16 +02:00
thunderx fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
txgbe net/txgbe: fix max number of queues for SR-IOV 2022-05-31 09:42:16 +02:00
vdev_netvsc remove unnecessary null checks 2022-02-12 12:07:48 +01:00
vhost net/vhost: move to vhost library statistics API 2022-06-01 11:50:09 +02:00
virtio avoid AltiVec keyword vector 2022-05-25 11:49:39 +02:00
vmxnet3 net/vmxnet3: fix Rx data ring initialization 2022-05-31 15:37:16 +02:00
meson.build drivers: remove octeontx2 drivers 2022-01-12 15:36:32 +01:00