diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-08-14 15:06:30 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-08-17 09:43:06 -0400 | 
| commit | 6349e49645c2845beddc3a9a7a56b6123bfa2c89 (patch) | |
| tree | 7fdb0fa2dda144cddae6561eb8da4b100d8bc2fc /zebra/interface.c | |
| parent | 77014daf3a88f4a4e2874db93e4b3915937f20ee (diff) | |
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 <sharpd@nvidia.com>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 6 | 
1 files changed, 6 insertions, 0 deletions
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))  | 
