]> 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)
commit723763a5d7a0795f5b8f4e120bbe82533cfb8882
treea29f2622287e24077863627a9e733dcb47b4da8b
parent81dbcfa86071e31652c9d88dd00cdb2d753d22e0
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