forked from Mirror/frr
Merge pull request #15399 from louis-6wind/fix-macvlan-crash
zebra: fix crash when macvlan link-interface is in another netns
This commit is contained in:
commit
c27fc6598d
|
@ -5153,6 +5153,11 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
|
|||
|
||||
zif = ifp->info;
|
||||
assert(zif);
|
||||
|
||||
if (zif->link_nsid)
|
||||
/* the link interface is another namespace */
|
||||
return;
|
||||
|
||||
link_ifp = zif->link;
|
||||
link_zif = link_ifp->info;
|
||||
assert(link_zif);
|
||||
|
|
Loading…
Reference in a new issue