diff options
author | Saeed Mahameed | 2018-12-12 10:42:30 +0100 |
---|---|---|
committer | Saeed Mahameed | 2019-01-25 21:16:15 +0100 |
commit | b832d4fdf105b5464d786e321e3c9e012e67cdfb (patch) | |
tree | ef605c283da878b1d18d103fd8ffcafd6d3b8f2a /drivers/net/ethernet/mellanox/mlx5/core/en_main.c | |
parent | net/mlx5e: Present the representors SW stats when state is not opened (diff) | |
download | kernel-qcow2-linux-b832d4fdf105b5464d786e321e3c9e012e67cdfb.tar.gz kernel-qcow2-linux-b832d4fdf105b5464d786e321e3c9e012e67cdfb.tar.xz kernel-qcow2-linux-b832d4fdf105b5464d786e321e3c9e012e67cdfb.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_main.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 01d0895b6264..17b6babbed8a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -3521,7 +3521,7 @@ static int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type, } } -static void mlx5e_fold_sw_stats64(struct mlx5e_priv *priv, struct rtnl_link_stats64 *s) +void mlx5e_fold_sw_stats64(struct mlx5e_priv *priv, struct rtnl_link_stats64 *s) { int i; |