summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-05-19 20:18:25 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2021-06-03 23:10:17 +0300
commit490dcecabbf93e705006af498fa6815251404a54 (patch)
treef29ba97ace44c3e34c7f0950f730c2232ce16a81 /tools/perf/scripts/python/stat-cpi.py
parent270d47dc1fc4756a0158778084a236bc83c156d2 (diff)
downloadlinux-490dcecabbf93e705006af498fa6815251404a54.tar.xz
mlx5: count all link events
mlx5 devices were observed generating MLX5_PORT_CHANGE_SUBTYPE_ACTIVE events without an intervening MLX5_PORT_CHANGE_SUBTYPE_DOWN. This breaks link flap detection based on Linux carrier state transition count as netif_carrier_on() does nothing if carrier is already on. Make sure we count such events. netif_carrier_event() increments the counters and fires the linkwatch events. The latter is not necessary for the use case but seems like the right thing to do. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions