[ovs-dev] [PATCH] ofctl: support multiple tables in replace-flows

Darren Shepherd darren at godaddy.com
Wed Jun 5 22:12:09 UTC 2013


This is an attempt to add multiple table support in the replace-flows
command.  The patch isn't complete as I still need to change the diff-flows
command also and some little house keeping.  It does work though for the
replace-flows.  I mostly wanted input to see if this is a good approach.

The change is quite simple, there is a new data structure table_classifiers
that holds a hashmap of table_id -> classifier.  When reading the flows 
from the file and switch, the flows are added to the appropriate classifier
for that table id.  The diff logic is basically the same but it just now
runs in a "for each table id" loop.

I additionally had to add OPFUTIL_P_OF10_STD_TID to 
ofputil_flow_dump_protocols.

Thanks,
Darren Shepherd


Darren Shepherd (1):
  ofctl: Initial attempt for multiple tables in replace-flows

 lib/ofp-util.c        |    1 +
 utilities/ovs-ofctl.c |  125 ++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 98 insertions(+), 28 deletions(-)

-- 
1.7.9.5




More information about the dev mailing list