]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Don't rely on interface state bit
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 3 Nov 2020 13:17:10 +0000 (15:17 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Mar 2021 22:35:11 +0000 (14:35 -0800)
commit2b08fd7b41fbeffa434fa10ac253fa3f4baf9ea7
treea29f2622287e24077863627a9e733dcb47b4da8b
parent5e00ef34ca14d966736052aab6bf88363978e863
net/mlx5: Don't rely on interface state bit

The check of MLX5_INTERFACE_STATE_UP is completely useless, because
the FW tracer cleanup is called on every change of the interface
and it ensures that notifier is disabled together with canceling
all the pending works.

Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c