aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-09-11 14:40:02 -0700
committerBen Pfaff <blp@nicira.com>2009-09-14 09:26:37 -0700
commit30a2c8b16234daf7b089372cc136b872f2e543d7 (patch)
treedb718c8b92ae93e977d5606cfd1d7b467d16a1d1
parent5eab9abcd3799de1117f4b2dfb9b2ec5e1cf963e (diff)
Raise MAC learning table capacity from 1,024 to 2,048 entries per bridge.
Given a possible 1,024 ports on a bridge the previous limit of 2,048 entries seems low. If we want to increase this further we should introduce dynamic allocation of table entries to avoid wasting memory in the common case. CC: Keith Amidon <keith@nicira.com>
-rw-r--r--lib/mac-learning.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mac-learning.h b/lib/mac-learning.h
index 6a2d30b4..e2ee74ba 100644
--- a/lib/mac-learning.h
+++ b/lib/mac-learning.h
@@ -26,7 +26,7 @@
#define MAC_HASH_MASK (MAC_HASH_SIZE - 1)
#define MAC_HASH_SIZE (1u << MAC_HASH_BITS)
-#define MAC_MAX 1024
+#define MAC_MAX 2048
/* Time, in seconds, before expiring a mac_entry due to inactivity. */
#define MAC_ENTRY_IDLE_TIME 60