]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/ofproto-dpif-upcall.c
revalidator: Defer stats push to end of validation.
authorJoe Stringer <joe@ovn.org>
Tue, 20 Sep 2016 21:08:21 +0000 (14:08 -0700)
committerJoe Stringer <joe@ovn.org>
Thu, 29 Sep 2016 00:02:38 +0000 (17:02 -0700)
commitfbf803b65064b6f31330791f232c805b7ae50930
tree575cb1d96983ea8ba62073bd2dace3b9fbb1f42c
parentdd0dc9eda0e0b4a6b2f8f4dee442be6865e60c89
revalidator: Defer stats push to end of validation.

To make more of the core revalidate() functions do just one thing and
not modify state on the way, refactor them to prepare the xcache then
defer the ukey modification and stats/side effects execution to the end
of successful revalidation.

If revalidation causes deletion, then the xcache will be prepared and
attached to the ukey, but the actual execution will be skipped since it
will be executed on flow_delete very soon anyway with final stats.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
ofproto/ofproto-dpif-upcall.c