net/mlx5e: Statify function mlx5e_monitor_counter_arm
authorTariq Toukan <tariqt@nvidia.com>
Tue, 22 Aug 2023 10:49:22 +0000 (13:49 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 14 Dec 2023 02:03:31 +0000 (18:03 -0800)
Function usage is limited to the monitor_stats.c file, do not expose it.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.h

index 254c8473904643f2f88dc08441185c1a809eade1..40c8df111754fdf487a6bce1d5cce26f898d015b 100644 (file)
@@ -36,7 +36,7 @@ int mlx5e_monitor_counter_supported(struct mlx5e_priv *priv)
        return true;
 }
 
-void mlx5e_monitor_counter_arm(struct mlx5e_priv *priv)
+static void mlx5e_monitor_counter_arm(struct mlx5e_priv *priv)
 {
        u32 in[MLX5_ST_SZ_DW(arm_monitor_counter_in)] = {};
 
index e1ac4b3d22fbd549e97fc6371229be69bed9e36c..6beba7f075c1b17c5fa649b3531dcf0fbe2b7348 100644 (file)
@@ -7,6 +7,5 @@
 int  mlx5e_monitor_counter_supported(struct mlx5e_priv *priv);
 void mlx5e_monitor_counter_init(struct mlx5e_priv *priv);
 void mlx5e_monitor_counter_cleanup(struct mlx5e_priv *priv);
-void mlx5e_monitor_counter_arm(struct mlx5e_priv *priv);
 
 #endif /* __MLX5_MONITOR_H__ */