Skip to content
Commit cb9a6db7 authored by Amir Tzin's avatar Amir Tzin Committed by Greg Kroah-Hartman
Browse files

net/mlx5e: Fix VF representors reporting zero counters to "ip -s" command

[ Upstream commit 80f12414 ]

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: 64b68e36

 ("net/mlx5: Refactor and expand rep vport stat group")
Reviewed-by: default avatarPatrisious Haddad <phaddad@nvidia.com>
Signed-off-by: default avatarAmir Tzin <amirtz@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 150de4a3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment