From: Chirag Shah Date: Fri, 11 Oct 2019 18:42:12 +0000 (-0700) Subject: zebra: handle macvlan down event X-Git-Tag: base_7.3~133^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=59260d4a073aea5f8f0d1d8412bcd5b159275308;p=matthieu%2Ffrr.git zebra: handle macvlan down event Macvlan down event have sentinel check of its parent link presence. Ticket:CM-26622 Reviewed By:CCR-9326 Testing Done: Signed-off-by: Chirag Shah --- diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 1da419040e..dbc47223e1 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -8582,6 +8582,13 @@ void zebra_vxlan_macvlan_down(struct interface *ifp) zif = ifp->info; assert(zif); link_ifp = zif->link; + if (!link_ifp) { + if (IS_ZEBRA_DEBUG_VXLAN) + zlog_debug("macvlan %s parent link is not found. Parent index %d ifp %s", + ifp->name, zif->link_ifindex, + if_lookup_by_index_all_vrf(zif->link_ifindex)); + return; + } link_zif = link_ifp->info; assert(link_zif);