mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 10:31:09 +00:00
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>
This commit is contained in:
parent
414d04adb8
commit
2ec19f003c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user