net/mlx5: fix device scan within switch domain