From: Ben Pfaff <blp@nicira.com>
Date: Fri, 4 May 2012 21:52:17 +0000 (-0700)
Subject: ofproto: Don't limit flows in OpenFlow tables by default.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec1c5c7ebc295aa9c87283cd944451b308481bf1;p=openvswitch

ofproto: Don't limit flows in OpenFlow tables by default.

This bug is ordinarily not exposed because bridge_configure_tables() in
bridge.c configures the max number of flows soon after an ofproto is
created.  But an upcoming commit will make construct() in ofproto-dpif.c
try to create some built-in flows before bridge gets control, so we need
to allow creating flows immediately upon initialization.

Signed-off-by: Ben Pfaff <blp@nicira.com>
---

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 806e56bf..98bb9124 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -3897,6 +3897,7 @@ oftable_init(struct oftable *table)
 {
     memset(table, 0, sizeof *table);
     classifier_init(&table->cls);
+    table->max_flows = UINT_MAX;
 }
 
 /* Destroys 'table', including its classifier and eviction groups.