]> git.proxmox.com Git - mirror_ovs.git/commitdiff
mac-learning: Increase default mac table size to 8K from 2K
authorEelco Chaudron <echaudro@redhat.com>
Wed, 27 Jun 2018 11:24:25 +0000 (13:24 +0200)
committerBen Pfaff <blp@ovn.org>
Wed, 27 Jun 2018 13:57:17 +0000 (06:57 -0700)
In field deployments of OVS (mostly in combination with OpenStack) we
see that the 2K default MAC forwarding table is too small.

On average this tables is around 5k entries, hence this patch to
increase the default value to the next power of 2, i.e. 8K.

This increase in size does not automatically increase the memory
footprint, as the memory for the MAC entries, are allocated only when
needed.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/mac-learning.h
vswitchd/vswitch.xml

index ee14185d9669034b2a045868e8fc816bc371d6ad..b1327b8309fdc014b77a1b4b717fe67e96a368c5 100644 (file)
@@ -89,7 +89,7 @@
 struct mac_learning;
 
 /* Default maximum size of a MAC learning table, in entries. */
-#define MAC_DEFAULT_MAX 2048
+#define MAC_DEFAULT_MAX 8192
 
 /* Time, in seconds, before expiring a mac_entry due to inactivity. */
 #define MAC_ENTRY_DEFAULT_IDLE_TIME 300
index b93da69bd7251f9cb29820ad4fa96888397d1de8..76094852d4ec55044f817b0ecbdd7fb2609ac258 100644 (file)
               type='{"type": "integer", "minInteger": 1}'>
         <p>
           The maximum number of MAC addresses to learn.  The default is
-          currently 2048.  The value, if specified, is forced into a reasonable
+          currently 8192.  The value, if specified, is forced into a reasonable
           range, currently 10 to 1,000,000.
         </p>
       </column>