[PATCH 6.14 051/311] net/mlx5: Move ttc allocation after switch case to prevent leaks