]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Fix for mcast-group update and delete per vni for svd
authorsharathr <sharathr@cumulusnetworks.com>
Tue, 19 Oct 2021 11:01:50 +0000 (04:01 -0700)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:05 +0000 (18:12 -0500)
commite41db2405612b197714c67f83aea650efa88d53e
tree671d1b9ec474ff18e83cdd8296731f3247dfc84a
parent00d30205eff94a0940e895ea0558355b48de0574
zebra: Fix for mcast-group update and delete per vni for svd

Ticket: 2698649
Testing Done: precommit and evpn-min

Problem:
When the mcast-group is updated, the changes were being read from the netlink
and populated by zebra, but when kernel sends the delete of fdb delete for the
group, we are deleting the mcast-group that we newly updated. This is because,
currently we blindly reset the mcast-group during fdb delete without checking
for mcast-group associated to the vni.

Fix is to separate add/update and delete mcast-group functions and to check
for mcast-group before resetting during delete.

Signed-off-by: sramamurthy <sramamurthy@nvidia.com>
zebra/rt_netlink.c
zebra/zebra_vxlan_if.c
zebra/zebra_vxlan_if.h