summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-03-09 16:37:30 -0500
committerGitHub <noreply@github.com>2022-03-09 16:37:30 -0500
commit82aca4ae4f995e5ff38202641ac47e127cd3c738 (patch)
tree778bdd8595ea7c98a94a6a25121f32e3af0f3446 /zebra/interface.c
parent4f138d5d8a22003cd906777309734b54895d8524 (diff)
parent8b48cdb913d7c04ee215cc64f337feb6a68954e2 (diff)
Merge pull request #10662 from chiragshah6/evpn_dev1
zebra: netlink protodown event handling for vxlan device
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index cefc39ab46..a76f8741e0 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -521,7 +521,7 @@ void if_flags_update(struct interface *ifp, uint64_t newflags)
/* inoperative -> operative? */
ifp->flags = newflags;
if (if_is_operative(ifp))
- if_up(ifp);
+ if_up(ifp, true);
}
}
@@ -1049,7 +1049,7 @@ bool if_nhg_dependents_is_empty(const struct interface *ifp)
}
/* Interface is up. */
-void if_up(struct interface *ifp)
+void if_up(struct interface *ifp, bool install_connected)
{
struct zebra_if *zif;
struct interface *link_if;
@@ -1081,7 +1081,8 @@ void if_up(struct interface *ifp)
#endif
/* Install connected routes to the kernel. */
- if_install_connected(ifp);
+ if (install_connected)
+ if_install_connected(ifp);
/* Handle interface up for specific types for EVPN. Non-VxLAN interfaces
* are checked to see if (remote) neighbor entries need to be installed
@@ -2782,7 +2783,7 @@ int if_linkdetect(struct interface *ifp, bool detect)
/* Interface may come up after disabling link detection */
if (if_is_operative(ifp) && !if_was_operative)
- if_up(ifp);
+ if_up(ifp, true);
}
/* FIXME: Will defer status change forwarding if interface
does not come down! */