]> git.proxmox.com Git - mirror_frr.git/commit - lib/vrf.c
lib: Convert vrf bit-map to a hash.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 23 Aug 2018 23:58:36 +0000 (19:58 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 24 Aug 2018 00:17:57 +0000 (20:17 -0400)
commit4a8bf85858da85e5ec51921d3530402c4e42f68d
tree8d07a913a5b6269617b785ed44e708dd60d6caed
parent753e2c9152ec2e089c5e6cdcdaba3e51581636a0
lib: Convert vrf bit-map to a hash.

Memory sizes of the vrf bit-map was insane for a system
with a moderate number of data on it:

Zebra:
VRF bit-map                   :        601   65536            39391944

Having a full 32bit integer bit space is problematically large,
switch over to a hash to store bit data.  We do not need to waste
so much space.

VRF bit-map                   :         13       8                 312

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/vrf.c