]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.c
zebra: optimize l3vni lookup in certain callflows
authormitesh <mitesh@cumulusnetworks.com>
Wed, 24 Jan 2018 23:25:03 +0000 (15:25 -0800)
committermitesh <mitesh@cumulusnetworks.com>
Wed, 24 Jan 2018 23:49:21 +0000 (15:49 -0800)
commit643215ce4cd1a38d15fdce8ea44e48b325c63272
treea74a979df630b9536a0a84fb95a1a9f3fe3d9223
parent872c4e980e45e7185530b76e9e8541fa2b6c9375
zebra: optimize l3vni lookup in certain callflows

Currently, while processing kernel messages related to VNIs
we first check if VNI is L3 - this is a hash lookup
later, we do the lookup again to find the L3-VNI.
This is non-optimal.
Made changed to make sure we only do the lookup once.

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
zebra/zebra_vxlan.c