mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 01:32:47 -04:00
net/mlx5e: E-Switch, Add PTP counters for uplink representor
There is a configuration where the uplink interface is the synchronizer. Add PTP counters for this interface for monitoring. Signed-off-by: Aya Levin <ayal@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Maor Dickman <maord@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
4b5fba4a3a
commit
7c5f940d26
@@ -1094,6 +1094,7 @@ static mlx5e_stats_grp_t mlx5e_ul_rep_stats_grps[] = {
|
||||
&MLX5E_STATS_GRP(ipsec_sw),
|
||||
&MLX5E_STATS_GRP(ipsec_hw),
|
||||
#endif
|
||||
&MLX5E_STATS_GRP(ptp),
|
||||
};
|
||||
|
||||
static unsigned int mlx5e_ul_rep_stats_grps_num(struct mlx5e_priv *priv)
|
||||
|
||||
@@ -2348,7 +2348,7 @@ MLX5E_DEFINE_STATS_GRP(channels, 0);
|
||||
MLX5E_DEFINE_STATS_GRP(per_port_buff_congest, 0);
|
||||
MLX5E_DEFINE_STATS_GRP(eth_ext, 0);
|
||||
static MLX5E_DEFINE_STATS_GRP(tls, 0);
|
||||
static MLX5E_DEFINE_STATS_GRP(ptp, 0);
|
||||
MLX5E_DEFINE_STATS_GRP(ptp, 0);
|
||||
static MLX5E_DEFINE_STATS_GRP(qos, 0);
|
||||
|
||||
/* The stats groups order is opposite to the update_stats() order calls */
|
||||
|
||||
@@ -459,5 +459,6 @@ extern MLX5E_DECLARE_STATS_GRP(channels);
|
||||
extern MLX5E_DECLARE_STATS_GRP(per_port_buff_congest);
|
||||
extern MLX5E_DECLARE_STATS_GRP(ipsec_hw);
|
||||
extern MLX5E_DECLARE_STATS_GRP(ipsec_sw);
|
||||
extern MLX5E_DECLARE_STATS_GRP(ptp);
|
||||
|
||||
#endif /* __MLX5_EN_STATS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user