summaryrefslogtreecommitdiff
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-05-19 10:18:25 -0700
committerSaeed Mahameed <saeedm@nvidia.com>2021-06-03 13:10:17 -0700
commit490dcecabbf93e705006af498fa6815251404a54 (patch)
treef29ba97ace44c3e34c7f0950f730c2232ce16a81 /mm/ksm.c
parent270d47dc1fc4756a0158778084a236bc83c156d2 (diff)
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 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions