summaryrefslogtreecommitdiff
path: root/zebra/zebra_evpn_mac.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-04-26 09:24:48 -0400
committerDonald Sharp <sharpd@nvidia.com>2021-05-05 10:08:06 -0400
commitda55bcbcb384a023e6283b8b36c672d09a643485 (patch)
tree878292402cb260cec13f29b985ffa3c446057d7d /zebra/zebra_evpn_mac.c
parent38078b1d5aa0119da762440e0187881dc9da9adf (diff)
zebra: Reduce size of vni hash tables to a more reasonable start size
We are creating 2 hash tables per vni in zebra. Once we start to scale the number of vni's we start to see some serious memory usage in zebra. Let's reduce the memory usage at startup for scale of vni's. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_evpn_mac.c')
-rw-r--r--zebra/zebra_evpn_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c
index 7bbe092d8c..fe3167dc29 100644
--- a/zebra/zebra_evpn_mac.c
+++ b/zebra/zebra_evpn_mac.c
@@ -1323,7 +1323,7 @@ int zebra_evpn_mac_send_del_to_client(vni_t vni, struct ethaddr *macaddr,
*/
struct hash *zebra_mac_db_create(const char *desc)
{
- return hash_create(mac_hash_keymake, mac_cmp, desc);
+ return hash_create_size(8, mac_hash_keymake, mac_cmp, desc);
}
/* program sync mac flags in the dataplane */