We previously counted flows that have been installed during the current dump as duplicates, rather than recognising them as new flows. This patch separates the counters out for these two cases.
Signed-off-by: Joe Stringer <joestrin...@nicira.com> --- v5-v6: No change. v4: Initial post. --- ofproto/ofproto-dpif-upcall.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 616d4a1..c9dabc2 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -45,7 +45,8 @@ VLOG_DEFINE_THIS_MODULE(ofproto_dpif_upcall); -COVERAGE_DEFINE(upcall_duplicate_flow); +COVERAGE_DEFINE(dumped_duplicate_flow); +COVERAGE_DEFINE(dumped_new_flow); COVERAGE_DEFINE(revalidate_missed_dp_flow); /* A thread that reads upcalls from dpif, forwards each upcall's packet, @@ -1548,15 +1549,19 @@ revalidate(struct revalidator *revalidator) /* We couldn't acquire the ukey. This means that * another revalidator is processing this flow * concurrently, so don't bother processing it. */ - COVERAGE_INC(upcall_duplicate_flow); + COVERAGE_INC(dumped_duplicate_flow); continue; } already_dumped = ukey->dump_seq == dump_seq; if (already_dumped) { - /* The flow has already been dumped and handled by another - * revalidator during this flow dump operation. Skip it. */ - COVERAGE_INC(upcall_duplicate_flow); + /* The flow has already been handled during this flow dump + * operation. Skip it. */ + if (ukey->xcache) { + COVERAGE_INC(dumped_duplicate_flow); + } else { + COVERAGE_INC(dumped_new_flow); + } ovs_mutex_unlock(&ukey->mutex); continue; } -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev