Added OFPFC_MODIFY_STRICT flow mod command.
authorJustin Pettit <jpettit@nicira.com>
Tue, 16 Sep 2008 23:07:25 +0000 (16:07 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 16 Sep 2008 23:07:41 +0000 (16:07 -0700)
commite4cf5c4b82ce35b7702b24cb690f005cdd0a42d0
tree07807f2b3d3c5a47dfc862db050417914cc926d4
parentd012fea24ba79e4dd789c814bef46c96301c7e82
Added OFPFC_MODIFY_STRICT flow mod command.

This cleans up the handling of modifying existing flows.  There now exists
OFPFC_MODIFY and OFPFC_MODIFY_STRICT commands, which have the same matching
characteristics to their OFPFC_DELETE* counterparts.  When adding a flow that
already exists, the counters and timers are now reset (ie, its treated as a
new flow).  This commit also adds the "--strict" option to dpctl to allow
strict matching for "mod-flows" and "del-flows".
21 files changed:
datapath/chain.c
datapath/chain.h
datapath/flow.c
datapath/flow.h
datapath/forward.c
datapath/hwtable_dummy/hwtable_dummy.c
datapath/table-hash.c
datapath/table-linear.c
datapath/table.h
include/openflow.h
lib/ofp-print.c
switch/chain.c
switch/chain.h
switch/datapath.c
switch/switch-flow.c
switch/switch-flow.h
switch/table-hash.c
switch/table-linear.c
switch/table.h
utilities/dpctl.8
utilities/dpctl.c