]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Remove duplicate NUD_PERMANENT check
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 8 Mar 2019 15:30:27 +0000 (10:30 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 8 Mar 2019 15:31:32 +0000 (10:31 -0500)
The check for an entry being NUD_PERMANENT has already been done
there is no need to do it twice.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c

index 9cea1d3c79891ebe58819de4b29a4d54bb0f34ec..32dc8791bcb2b7beb1c4c61b5bed1802cd4a0d28 100644 (file)
@@ -2045,10 +2045,6 @@ static int netlink_macfdb_change(struct nlmsghdr *h, int len, ns_id_t ns_id)
         * so perform an implicit delete of any local entry (if it exists).
         */
        if (h->nlmsg_type == RTM_NEWNEIGH) {
-               /* Drop "permanent" entries. */
-               if (ndm->ndm_state & NUD_PERMANENT)
-                       return 0;
-
                if (IS_ZEBRA_IF_VXLAN(ifp))
                        return zebra_vxlan_check_del_local_mac(ifp, br_if, &mac,
                                                               vid);