[dpdk-dev] [PATCH v2 4/7] rte_sched: don't clear statistics when read

Stephen Hemminger stephen at networkplumber.org
Sat Feb 21 02:53:27 CET 2015


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.


More information about the dev mailing list