[PATCH 6.12 067/280] net/mlx5: Move ttc allocation after switch case to prevent leaks