diff options
author | Lou Berger <lberger@labn.net> | 2019-04-16 17:24:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-16 17:24:48 +0200 |
commit | 817489896f23647e2edfcd053a86924fbaec0724 (patch) | |
tree | 87990cdc6d7497231ac0dde6840ea9c2022fa05b /bgpd/bgp_zebra.c | |
parent | Merge pull request #4096 from donaldsharp/pim_nht_cleanup (diff) | |
parent | bgpd: use listnode_add_force to force allocation of entries if needed (diff) | |
download | frr-817489896f23647e2edfcd053a86924fbaec0724.tar.xz frr-817489896f23647e2edfcd053a86924fbaec0724.zip |
Merge pull request #3762 from pguibert6WIND/do_not_alloc_lists_fs_by_def
bgpd: do not allocate lists on fs entries of bgp entries.
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 66fcbb3f3..55ecc5f16 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -2153,7 +2153,8 @@ static int rule_notify_owner(int command, struct zclient *zclient, /* link bgp_info to bgp_pbr */ path = (struct bgp_path_info *)bgp_pbr->path; extra = bgp_path_info_extra_get(path); - listnode_add(extra->bgp_fs_iprule, bgp_pbr); + listnode_add_force(&extra->bgp_fs_iprule, + bgp_pbr); } if (BGP_DEBUG(zebra, ZEBRA)) zlog_debug("%s: Received RULE_INSTALLED", @@ -2261,7 +2262,7 @@ static int ipset_entry_notify_owner(int command, struct zclient *zclient, /* link bgp_path_info to bpme */ path = (struct bgp_path_info *)bgp_pbime->path; extra = bgp_path_info_extra_get(path); - listnode_add(extra->bgp_fs_pbr, bgp_pbime); + listnode_add_force(&extra->bgp_fs_pbr, bgp_pbime); } break; case ZAPI_IPSET_ENTRY_FAIL_REMOVE: |