ofproto-dpif: Introduce an enum for the number of tables.
authorBen Pfaff <blp@nicira.com>
Mon, 12 Sep 2011 23:40:03 +0000 (16:40 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Sep 2011 18:46:10 +0000 (11:46 -0700)
commit9cdaaebe218dbd9d2126818725b0111a70a3df54
treeb1a046fe4623fb891357240d8c91a8f8d91c3cd2
parentecf1e7ac2bc61b1d614395354554e672535135f8
ofproto-dpif: Introduce an enum for the number of tables.

It seems reasonable that someone might want to reduce this number, so
make it an enum to simplify that.

If someone does reduce the number then rule_dpif_lookup() needs to validate
the table_id, so add code to do that too.
ofproto/ofproto-dpif.c