Commit b790322638 for frr

commit b790322638cdf6ec5a3757fb914337d3d7754fed
Author: Nageswara Soma <nsoma@cisco.com>
Date:   Mon Oct 26 13:54:52 2026 -0700

    zebra: remove stale HREP on flood change

    A remote VTEP changing from HER to disabled flooding
    keeps its kernel HREP entry because cleanup checks
    whether the old mode was disabled. BUM traffic can
    therefore continue to be replicated to that VTEP.

    Uninstall the HREP entry when the old mode is HER,
    before storing the new flood mode and attempting
    installation for that mode.

    Signed-off-by: Nageswara Soma <nsoma@cisco.com>

diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index c8d2c56262..f1780f70ce 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -5315,7 +5315,7 @@ void zebra_vxlan_remote_vtep_add(vrf_id_t vrf_id, vni_t vni, struct ipaddr *vtep
 		 * the flood mode has changed
 		 */
 		if (zvtep->flood_control != flood_control) {
-			if (zvtep->flood_control == VXLAN_FLOOD_DISABLED)
+			if (zvtep->flood_control == VXLAN_FLOOD_HEAD_END_REPL)
 				/* old mode was head-end-replication but
 				 * is no longer; get rid of the HER fdb
 				 * entry installed before