summaryrefslogtreecommitdiff
path: root/utilities/ovs-controller.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-05-12 09:58:01 -0700
committerBen Pfaff <blp@nicira.com>2011-05-12 09:58:01 -0700
commit6c1491fbd75754d2e4d5028650554f9d5d3a4958 (patch)
tree1593f6aea5ac2a851d6c8a0d06dc88cee73c3332 /utilities/ovs-controller.c
parent154896e3b99978317d74b5c9847fe07ec01b54b3 (diff)
downloadopenvswitch-6c1491fbd75754d2e4d5028650554f9d5d3a4958.tar.gz
Implement basic multiple table support.
This implements basic multiple table support in ofproto and supporting libraries and utilities. The design is the same as the one that has been on the Open vSwitch "wdp" branch for a long time. There is no support for multiple tables in the software switch implementation (ofproto-dpif), only a set of hooks for other switch implementations to use. To allow controllers to add flows in a particular table, Open vSwitch adds an OpenFlow 1.0 extension called NXT_FLOW_MOD_TABLE_ID.
Diffstat (limited to 'utilities/ovs-controller.c')
-rw-r--r--utilities/ovs-controller.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/utilities/ovs-controller.c b/utilities/ovs-controller.c
index 27c8e4731..f131917d4 100644
--- a/utilities/ovs-controller.c
+++ b/utilities/ovs-controller.c
@@ -261,6 +261,7 @@ static void
read_flow_file(const char *name)
{
enum nx_flow_format flow_format;
+ bool flow_mod_table_id;
FILE *stream;
stream = fopen(optarg, "r");
@@ -269,8 +270,10 @@ read_flow_file(const char *name)
}
flow_format = NXFF_OPENFLOW10;
- while (parse_ofp_flow_mod_file(&default_flows, &flow_format, stream,
- OFPFC_ADD)) {
+ flow_mod_table_id = false;
+ while (parse_ofp_flow_mod_file(&default_flows,
+ &flow_format, &flow_mod_table_id,
+ stream, OFPFC_ADD)) {
continue;
}