]> git.proxmox.com Git - mirror_frr.git/commit
zebra: fix crash seen on VxLAN SG table cleanup done as a part of vrf disable
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Sun, 28 Jun 2020 15:56:03 +0000 (08:56 -0700)
committerAnuradha Karuppiah <anuradhak@nvidia.com>
Mon, 30 Nov 2020 20:50:38 +0000 (12:50 -0800)
commit0c16fb7262f495f07ed3cd5ff4998dc8cf8d1fd5
tree7bb4b287491c7fb5ddca49ebb0bef2fe1c55554c
parentd149c75aa180aa4338b9c2030fe4e6653d32840f
zebra: fix crash seen on VxLAN SG table cleanup done as a part of vrf disable

There are two fixes in this commit -
1. Prevent implicit deletion of (*,G) entries during (S,G) cleanup.
This is done by creating a dummy reference on all (*,G) entries.
This is needed for a hash-walk based table cleanup.
2. Free up the SG hash table when the VRF is deleted.

Ticket: CM-30151

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
zebra/zebra_vxlan.c