net/mlx5e: Reuse fold sw stats in representors
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 12 Dec 2018 09:42:30 +0000 (01:42 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 25 Jan 2019 20:16:15 +0000 (12:16 -0800)
commitb832d4fdf105b5464d786e321e3c9e012e67cdfb
treeef605c283da878b1d18d103fd8ffcafd6d3b8f2a
parent168af00a3b7b4cb9522687ea08bc2dfa5e9b5774
net/mlx5e: Reuse fold sw stats in representors

Representors software stats are basic, this patch is reusing the
mlx5e_fold_sw_stats in representors, which sums up the basic stats64 for a
mlx5e netdevice.

Fixes: 8bfaf07f7806 ("net/mlx5e: Present SW stats when state is not opened")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c