Commit b3b39ff197 for frr

commit b3b39ff197bc0ead90d49635aee49aad81637adc
Author: Nageswara Soma <nsoma@cisco.com>
Date:   Mon Nov 23 14:32:11 2026 -0800

    zebra: skip zero router MAC for EVPN VRF routes

    Type-2 MAC/IP routes without the Router MAC extended
    community can be imported into an EVPN VRF, for example
    when the L2VNI and L3VNI share a route target. zebra
    then created a remote RMAC entry for 00:00:00:00:00:00
    and installed it as an FDB entry on the L3VNI VXLAN
    device.

    A zero-MAC FDB entry with a destination is the kernel's
    default BUM flood entry, so the VTEP became a flood
    target for the L3VNI. Dataplanes that sync kernel FDB
    entries treat it as a remote VTEP flood entry.

    No routed traffic uses that entry: zebra already
    refuses to install a zero-MAC VTEP neighbor. Skip the
    RMAC add for a zero MAC. The nexthop and its host
    prefix references are still tracked, and the RMAC
    delete and replace paths already handle a missing
    entry.

    Log skipped zero RMACs under VXLAN debugging with
    VRF, VNI, prefix and VTEP context for diagnosis.

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

diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index f1780f70ce..6c03134cc8 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -2994,10 +2994,14 @@ void zebra_vxlan_evpn_vrf_route_add(vrf_id_t vrf_id, const struct ethaddr *rmac,
 	svd_remote_nh_add(zl3vni, vtep_ip, rmac, host_prefix);

 	/*
-	 * add the rmac - remote rmac to be installed is against the
-	 * nexthop address
+	 * Type-2 imports without the Router MAC extcomm carry a zero RMAC;
+	 * a zero-MAC FDB entry would become a BUM flood destination.
 	 */
-	zl3vni_remote_rmac_add(zl3vni, rmac, vtep_ip);
+	if (!is_zero_mac(rmac))
+		zl3vni_remote_rmac_add(zl3vni, rmac, vtep_ip);
+	else if (IS_ZEBRA_DEBUG_VXLAN)
+		zlog_debug("Skip zero RMAC for VRF %s(%u) L3VNI %u prefix %pFX VTEP %pIA",
+			   vrf_id_to_name(vrf_id), vrf_id, zl3vni->vni, host_prefix, vtep_ip);
 }

 /* handle evpn vrf route delete */