On Fri, 20 Feb 2015 21:28:55 +0000 "Dumitrescu, Cristian" <cristian.dumitrescu at intel.com> wrote:
> Agree. > Stephen, how about a run-time solution (I agree it would be much better, why > did I not consider this in the first place?) of adding a new bool parameter > in struct rte_sched_port_params: clear_stats_on_reset? > Both stats read function get the port handle (struct rte_sched_port *) as > parameter, so there should be no ripple effect to propagate this flag. Why not read_and_clear function if absolutely necessary.