ofproto-dpif: Add 'force-miss-model' configuration
authorJoe Stringer <joe@wand.net.nz>
Wed, 26 Jun 2013 08:25:55 +0000 (17:25 +0900)
committerBen Pfaff <blp@nicira.com>
Wed, 26 Jun 2013 15:28:19 +0000 (08:28 -0700)
commit7155fa52f0e585eb515ceebf3790d90554bbe18e
treed875a1080a7a49af21b3f96e99243bd3064fa12e
parent7431e17196fdb1c3189d67e3aeed4adeab4cf479
ofproto-dpif: Add 'force-miss-model' configuration

This adds support for specifying flow miss handling behaviour at
runtime, through a new "other-config" option in the Open_vSwitch table.
This takes precedence over flow-eviction-threshold.

By default, the behaviour is the same as before. If force-miss-model is
set to 'with-facets', then flow miss handling will always result in the
creation of new facets and flow-eviction-threshold will be ignored. If
force-miss-model is set to 'without-facets', then flow miss handling will never
result in the creation of new facets (effectively the same as setting the
flow-eviction-threshold to 0, which is not currently configurable).

We intend to use this configuration option in the testsuite to force
particular code paths to be used, allowing us to improve test coverage.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c
vswitchd/vswitch.xml