net/mlx5: Refactor and expand rep vport stat group
authorOr Har-Toov <ohartoov@nvidia.com>
Tue, 22 Nov 2022 10:42:18 +0000 (12:42 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 9 Dec 2022 00:10:55 +0000 (16:10 -0800)
commit64b68e36964997e6a00297daf0fd6eab12e9fb82
tree38ec3f985a37d3cc4958b51d59f60fea1b46943f
parent7c33e73995e933475985ee0ca3cfa5b335da447e
net/mlx5: Refactor and expand rep vport stat group

Expand representor vport stat group to support all counters from the
vport stat group, to count all the traffic passing through the vport.

Fix current implementation where fill_stats and update_stats use
different structs.

Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@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