diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-04-26 09:24:48 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-05-05 10:08:06 -0400 |
| commit | da55bcbcb384a023e6283b8b36c672d09a643485 (patch) | |
| tree | 878292402cb260cec13f29b985ffa3c446057d7d /zebra/zebra_evpn_mac.c | |
| parent | 38078b1d5aa0119da762440e0187881dc9da9adf (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.c | 2 |
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 */ |
