Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1902,21 +1902,20 @@ static void interface_bridge_vlan_update(struct zebra_dplane_ctx *ctx,

/* Could we have multiple bridge vlan infos? */
bvarray = dplane_ctx_get_ifp_bridge_vlan_info_array(ctx);
if (!bvarray)
return;

for (i = 0; i < bvarray->count; i++) {
bvinfo = bvarray->array[i];
if (bvarray) {
for (i = 0; i < bvarray->count; i++) {
bvinfo = bvarray->array[i];

if (bvinfo.flags & DPLANE_BRIDGE_VLAN_INFO_RANGE_BEGIN) {
vid_range_start = bvinfo.vid;
continue;
}
if (bvinfo.flags & DPLANE_BRIDGE_VLAN_INFO_RANGE_BEGIN) {
vid_range_start = bvinfo.vid;
continue;
}

if (!(bvinfo.flags & DPLANE_BRIDGE_VLAN_INFO_RANGE_END))
vid_range_start = bvinfo.vid;
if (!(bvinfo.flags & DPLANE_BRIDGE_VLAN_INFO_RANGE_END))
vid_range_start = bvinfo.vid;

zebra_vlan_bitmap_compute(ifp, vid_range_start, bvinfo.vid);
zebra_vlan_bitmap_compute(ifp, vid_range_start, bvinfo.vid);
}
}

zebra_vlan_mbr_re_eval(ifp, old_vlan_bitmap);
Expand Down
Loading