]> git.proxmox.com Git - mirror_ovs.git/commit
revalidator: Improve optimization to skip revalidation.
authorJoe Stringer <joestringer@nicira.com>
Wed, 2 Jul 2014 07:41:33 +0000 (07:41 +0000)
committerJoe Stringer <joestringer@nicira.com>
Wed, 2 Jul 2014 06:10:11 +0000 (18:10 +1200)
commit49fae7728daf4f492339adec09a34cb90c53cfeb
treed6da6c1882ab514dd7682121c9590d3635f8303c
parente0b8f73f17263e156988a45ebb6aa2e67fd70cc4
revalidator: Improve optimization to skip revalidation.

The should_revalidate() optimisation introduced with commit 698ffe3623
(revalidator: Only revalidate high-throughput flows.) was a little
aggressive, occasionally deleting flows even when OVS is quite capable
of performing full revalidation.

This commit modifies the logic to:
* Firstly, check if we are likely to handle full revalidation, and
  attempt that instead.
* Secondly, fall back to the existing flow throughput estimations to
  determine whether to revalidate the flow or just delete it.

VMware-BZ: #1271926

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
ofproto/ofproto-dpif-upcall.c