diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-03-08 16:30:27 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-03-08 16:31:32 +0100 |
commit | 2ec19f003c8aff14dcef1256d1e914c659ae4002 (patch) | |
tree | 3f7a22799650bdfafaf35a2f7d7f5bf9702132ec /zebra | |
parent | Merge pull request #3919 from sworleys/Remove-SNL-Var (diff) | |
download | frr-2ec19f003c8aff14dcef1256d1e914c659ae4002.tar.xz frr-2ec19f003c8aff14dcef1256d1e914c659ae4002.zip |
zebra: Remove duplicate NUD_PERMANENT check
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>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/rt_netlink.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 9cea1d3c7..32dc8791b 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -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); |