net/mlx5: modify ext-counter memory allocation