OSDN Git Service

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)
commit7ad67a20f28fd20e63aeb1e095a9bd86bc5b1495
treea29f2622287e24077863627a9e733dcb47b4da8b
parent7e615b9978021a034124166d4fa3dc4fc0ea4b16
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