mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 12:44:55 +00:00
bgpd: Cleanup bnch_nexthop_cache_reset to fit cleaner
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
7f040da1a1
commit
3d111939f2
@ -84,10 +84,11 @@ static void bgp_nexthop_cache_reset(struct bgp_table *table)
|
|||||||
|
|
||||||
for (rn = bgp_table_top(table); rn; rn = bgp_route_next(rn)) {
|
for (rn = bgp_table_top(table); rn; rn = bgp_route_next(rn)) {
|
||||||
bnc = bgp_nexthop_get_node_info(rn);
|
bnc = bgp_nexthop_get_node_info(rn);
|
||||||
if (bnc != NULL) {
|
if (!bnc)
|
||||||
|
continue;
|
||||||
|
|
||||||
while (!LIST_EMPTY(&(bnc->paths))) {
|
while (!LIST_EMPTY(&(bnc->paths))) {
|
||||||
struct bgp_path_info *path =
|
struct bgp_path_info *path = LIST_FIRST(&(bnc->paths));
|
||||||
LIST_FIRST(&(bnc->paths));
|
|
||||||
|
|
||||||
path_nh_map(path, bnc, false);
|
path_nh_map(path, bnc, false);
|
||||||
}
|
}
|
||||||
@ -97,7 +98,6 @@ static void bgp_nexthop_cache_reset(struct bgp_table *table)
|
|||||||
bgp_unlock_node(rn);
|
bgp_unlock_node(rn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void *bgp_tip_hash_alloc(void *p)
|
static void *bgp_tip_hash_alloc(void *p)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user