net/mlx5e: Fix VF representors reporting zero counters to "ip -s" command
authorAmir Tzin <amirtz@nvidia.com>
Mon, 4 Sep 2023 15:26:47 +0000 (18:26 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 12 Oct 2023 18:10:35 +0000 (11:10 -0700)
commit80f1241484dd1b1d4eab1a0211d52ec2bd83e2f1
treee4a83b01d0a7c35e84da5a444879b092e290cb56
parent06b4eac9c4beda520b8a4dbbb8e33dba9d1c8fba
net/mlx5e: Fix VF representors reporting zero counters to "ip -s" command

Although vf_vport entry of struct mlx5e_stats is never updated, its
values are mistakenly copied to the caller structure in the VF
representor .ndo_get_stat_64 callback mlx5e_rep_get_stats(). Remove
redundant entry and use the updated one, rep_stats, instead.

Fixes: 64b68e369649 ("net/mlx5: Refactor and expand rep vport stat group")
Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Amir Tzin <amirtz@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c