diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-07-04 21:11:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 21:11:11 +0200 |
commit | 9a0bb7bcd1ac5b025b93667309a1b979be5c493f (patch) | |
tree | 3294c7026c8cf77b9e3f3f09695bfc7434a35671 /bgpd/bgp_zebra.c | |
parent | Merge pull request #13554 from ryndia/fix_leak (diff) | |
parent | *: Rearrange vrf_bitmap_X api to reduce memory footprint (diff) | |
download | frr-9a0bb7bcd1ac5b025b93667309a1b979be5c493f.tar.xz frr-9a0bb7bcd1ac5b025b93667309a1b979be5c493f.zip |
Merge pull request #13333 from donaldsharp/vrf_bitmap_cleanup
*: Rearrange vrf_bitmap_X api to reduce memory footprint
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index e6fa94733..430ea0f9a 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1914,7 +1914,7 @@ int bgp_redistribute_set(struct bgp *bgp, afi_t afi, int type, redist_add_instance(&zclient->mi_redist[afi][type], instance); } else { - if (vrf_bitmap_check(zclient->redist[afi][type], bgp->vrf_id)) + if (vrf_bitmap_check(&zclient->redist[afi][type], bgp->vrf_id)) return CMD_WARNING; #ifdef ENABLE_BGP_VNC @@ -1924,7 +1924,7 @@ int bgp_redistribute_set(struct bgp *bgp, afi_t afi, int type, } #endif - vrf_bitmap_set(zclient->redist[afi][type], bgp->vrf_id); + vrf_bitmap_set(&zclient->redist[afi][type], bgp->vrf_id); } /* @@ -2045,9 +2045,9 @@ int bgp_redistribute_unreg(struct bgp *bgp, afi_t afi, int type, return CMD_WARNING; redist_del_instance(&zclient->mi_redist[afi][type], instance); } else { - if (!vrf_bitmap_check(zclient->redist[afi][type], bgp->vrf_id)) + if (!vrf_bitmap_check(&zclient->redist[afi][type], bgp->vrf_id)) return CMD_WARNING; - vrf_bitmap_unset(zclient->redist[afi][type], bgp->vrf_id); + vrf_bitmap_unset(&zclient->redist[afi][type], bgp->vrf_id); } if (bgp_install_info_to_zebra(bgp)) { |