net/mlx5: fix switchdev mode recognition