aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2020-01-20 22:32:12 -0800
committerSaeed Mahameed <saeedm@mellanox.com>2020-01-22 22:29:49 -0800
commit3460c184dfb0b41118b5000ad78dd997c034b2b5 (patch)
treeb3b38adb023c0b3255a0c0c619562c526ba8d8fa /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
parentnet/mlx5e: Move uplink rep init/cleanup code into own functions (diff)
downloadlinux-dev-3460c184dfb0b41118b5000ad78dd997c034b2b5.tar.xz
linux-dev-3460c184dfb0b41118b5000ad78dd997c034b2b5.zip
net/mlx5e: Profile specific stats groups
Attach stats groups array to the profiles and make the stats utility functions (get_num, update, fill, fill_strings) generic and use the profile->stats_grps rather the hardcoded NIC stats groups. This will allow future extension to have per profile stats groups. In this patch mlx5e NIC and IPoIB will still share the same stats groups. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
index 7c87f523e370..bd870ffeb1be 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
@@ -435,6 +435,8 @@ static const struct mlx5e_profile mlx5i_nic_profile = {
.rx_handlers.handle_rx_cqe_mpwqe = NULL, /* Not supported */
.max_tc = MLX5I_MAX_NUM_TC,
.rq_groups = MLX5E_NUM_RQ_GROUPS(REGULAR),
+ .stats_grps = mlx5e_nic_stats_grps,
+ .stats_grps_num = mlx5e_nic_stats_grps_num,
};
/* mlx5i netdev NDos */