mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
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>
This commit is contained in:
parent
7e615b9978
commit
7ad67a20f2
@ -1126,8 +1126,7 @@ static int fw_tracer_event(struct notifier_block *nb, unsigned long action, void
|
||||
|
||||
switch (eqe->sub_type) {
|
||||
case MLX5_TRACER_SUBTYPE_OWNERSHIP_CHANGE:
|
||||
if (test_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state))
|
||||
queue_work(tracer->work_queue, &tracer->ownership_change_work);
|
||||
queue_work(tracer->work_queue, &tracer->ownership_change_work);
|
||||
break;
|
||||
case MLX5_TRACER_SUBTYPE_TRACES_AVAILABLE:
|
||||
if (likely(tracer->str_db.loaded))
|
||||
|
Loading…
Reference in New Issue
Block a user