From 6349e49645c2845beddc3a9a7a56b6123bfa2c89 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 14 Aug 2023 15:06:30 -0400 Subject: zebra: Fix crashes in interface change Upon some internal testing some crashes were found. This fixes the several crashes and normalizes the code to be closer in it's execution pre and post changes to use the data plane. Signed-off-by: Donald Sharp --- zebra/interface.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zebra/interface.c') diff --git a/zebra/interface.c b/zebra/interface.c index ab2b7d2446..2157680d58 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1848,9 +1848,15 @@ static void interface_bridge_vxlan_update(struct zebra_dplane_ctx *ctx, struct zebra_if *zif = ifp->info; const struct zebra_dplane_bridge_vlan_info *bvinfo; + if (dplane_ctx_get_ifp_no_afspec(ctx)) + return; + if (IS_ZEBRA_VXLAN_IF_SVD(zif)) interface_bridge_vxlan_vlan_vni_map_update(ctx, ifp); + if (dplane_ctx_get_ifp_no_bridge_vlan_info(ctx)) + return; + bvinfo = dplane_ctx_get_ifp_bridge_vlan_info(ctx); if (!(bvinfo->flags & DPLANE_BRIDGE_VLAN_INFO_PVID)) -- cgit v1.2.3