ofproto: Fix abstraction of OpenFlow multiple table support.
authorBen Pfaff <blp@nicira.com>
Mon, 12 Jul 2010 17:43:53 +0000 (10:43 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 12 Jul 2010 17:43:53 +0000 (10:43 -0700)
commit8de77246db6f7a33036a1696dd0c47c9864777fb
tree4d80b27c63976c157542ce1e449d3278bd682e98
parentb79520fe41a66aadb6e516d40a79781f5d079a8d
ofproto: Fix abstraction of OpenFlow multiple table support.

The ofproto code until now has assumed to some extent that the switch has
exactly two tables, one that handles exact-match flow and the other that
handles all other flows.  Commit 840ee2faf "wdp: Add new wdp_class member
function 'get_table_stats'" did part of the work on getting rid of that
assumption.  This commit does the rest of the work.

Now the only assumption left is that a switch has no more than 32 tables.
This seems reasonable enough to me; OpenFlow allows for no more 255.
ofproto/ofproto.c
ofproto/wdp-provider.h
ofproto/wdp-xflow.c
ofproto/wdp.c
ofproto/wdp.h