]> git.proxmox.com Git - ovs.git/commit
revalidator: Use xcache when revalidation is required.
authorJoe Stringer <joestringer@nicira.com>
Thu, 5 Jun 2014 06:08:40 +0000 (06:08 +0000)
committerJoe Stringer <joestringer@nicira.com>
Thu, 5 Jun 2014 01:21:50 +0000 (13:21 +1200)
commita48c85b2d672505b89e488d28066538705b94942
tree7b96eee6dcf665a6da5ba90eda4b5d30786d98d3
parentfeca8bd78a2e8bf5bb37ac8d07e6040d6ff75bd5
revalidator: Use xcache when revalidation is required.

One of the reasons that xlate_cache was introduced was to ensure that
statistics were attributed to the correct rules and interfaces according
to the flow that was installed into the datapath, rather than according
to the current state of the flow table.

This patch makes the revalidators use the xlate_cache to attribute stats
when full revalidation is required, as the statistics belong to the old
ruleset. However, when revalidating, the rules may have changed while
leaving the datapath flows intact, so we still re-create the xcache at
that point.

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