]> git.puffer.fish Git - mirror/frr.git/commitdiff
Zebra: replace mac entry in kernel when it moves from local to remote
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Wed, 2 Aug 2017 00:34:51 +0000 (17:34 -0700)
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Thu, 17 Aug 2017 00:30:46 +0000 (17:30 -0700)
Until now, we had to delete the local mac entries when a mac moved from local to remote,
with the new kernel patch that is no longer necessary.

Ticket:CM-16094
Reviewed By:CCR-6470
Testing Done: Manual

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

index f99c16ae91a8586a9a256fefab5a2a94f328275d..676cf8334e1a9e62ba132c45767891ab2272dc5e 100644 (file)
@@ -3272,9 +3272,6 @@ int zebra_vxlan_remote_macip_add(struct zserv *client, int sock, u_short length,
                                /* Is this MAC created for a MACIP? */
                                if (ipa_len)
                                        SET_FLAG(mac->flags, ZEBRA_MAC_AUTO);
-                       } else if (CHECK_FLAG(mac->flags, ZEBRA_MAC_LOCAL)) {
-                               /* Moving from local to remote, issue delete. */
-                               zvni_mac_uninstall(zvni, mac, 1);
                        }
 
                        /* Set "auto" and "remote" forwarding info. */