diff options
author | Huy Nguyen <huyn@mellanox.com> | 2016-11-17 14:45:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 20:08:57 +0300 |
commit | bedb7c909c1911270fcb084230245df4a00bd881 (patch) | |
tree | eb16e8a9640bca02456baa59d5e9f45490181ae3 /drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | |
parent | d4eb4cd78b0774c7061db56844ed2ea7790cc77c (diff) | |
download | linux-bedb7c909c1911270fcb084230245df4a00bd881.tar.xz |
net/mlx5e: Add port module event counters to ethtool stats
Add port module event counters to ethtool -S command
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_stats.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h index 57452fdc5154..b817e5133a55 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h @@ -379,4 +379,21 @@ struct mlx5e_stats { struct mlx5e_pport_stats pport; }; +static const struct counter_desc mlx5e_pme_status_desc[] = { + { "module_plug", 0 }, + { "module_unplug", 8 }, +}; + +static const struct counter_desc mlx5e_pme_error_desc[] = { + { "module_pwr_budget_exd", 0 }, /* power budget exceed */ + { "module_long_range", 8 }, /* long range for non MLNX cable */ + { "module_bus_stuck", 16 }, /* bus stuck (I2C or data shorted) */ + { "module_no_eeprom", 24 }, /* no eeprom/retry time out */ + { "module_enforce_part", 32 }, /* enforce part number list */ + { "module_unknown_id", 40 }, /* unknown identifier */ + { "module_high_temp", 48 }, /* high temperature */ + { "module_bad_shorted", 56 }, /* bad or shorted cable/module */ + { "module_unknown_status", 64 }, +}; + #endif /* __MLX5_EN_STATS_H__ */ |