I am looking at adding support for On-demand flow counters and figured one
of the benefits of doing this is reduced lock contention in
ovs_flow_stats_update.

If my understanding is correct, this involves processing flags
OFPFF13_NO_PKT_COUNTS
and OFPFF13_NO_BYT_COUNTS and communicating them so when the kernel flows
are created / updated we somehow pass this info along so the stats do not
get updated for such flows.

The closest mod flag to this is OFPFF12_RESET_COUNTS, so I started tracing
how this gets sent to the kernel module.

However I figured there is a similar flag in dpif DPIF_FP_ZERO_STATS and
was unable to link the two.

ofputil_flow_mod.flags has the OFPFF12_RESET_COUNTS set in
handle_flow_mod__() and I am not sure how that can be made available after
flow translation in dpif_linux_operate__()

Also I was curious why we use node specific counters in the kernel instead
of percpu ? Is it to save on memory footprint ?

Thanks.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to