Add support for listing and deleting entries based on an output port.
authorJustin Pettit <jpettit@nicira.com>
Mon, 1 Dec 2008 22:34:23 +0000 (14:34 -0800)
committerJustin Pettit <jpettit@nicira.com>
Mon, 1 Dec 2008 22:34:23 +0000 (14:34 -0800)
commitf22864a699ba6a5fe175eab90951be32907b647e
treea70c0eb89f23e9113a87b61d1dd8f43b82ef6299
parent72ce961ebb76cb3bcdd326aff682a45339302f3c
Add support for listing and deleting entries based on an output port.

To support this, an "out_port" field has been added to the "ofp_flow_mod",
"ofp_flow_stats_request", and "ofp_aggregate_stats_request" messages.  If an
"out_port" contains a value other than "OFPP_NONE", it introduces a constraint
when matching.  This constraint is that the rule must contain an output action
directed at that port.  Other constraints such as ofp_match structs and
priorities are still used; this is purely an *additional* constraint.  Note
that to get previous behavior, though, "out_port" must be set to "OFPP_NONE",
since "0" is a valid port id.  This only applies to the delete and
delete_strict flow mod commands; the field is ignored by add, modify, and
modify_strict.
20 files changed:
datapath/chain.c
datapath/chain.h
datapath/datapath.c
datapath/flow.c
datapath/flow.h
datapath/forward.c
datapath/table-hash.c
datapath/table-linear.c
datapath/table.h
include/openflow/openflow.h
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.in
utilities/dpctl.c