mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
bgpd: Remove withdraw_low from system, it is never used
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 4215e8011b
)
This commit is contained in:
parent
a0b9010536
commit
577f06b556
@ -100,7 +100,6 @@ struct bgp_adj_in {
|
||||
struct bgp_synchronize {
|
||||
struct bgp_adv_fifo_head update;
|
||||
struct bgp_adv_fifo_head withdraw;
|
||||
struct bgp_adv_fifo_head withdraw_low;
|
||||
};
|
||||
|
||||
/* BGP adjacency linked list. */
|
||||
|
@ -74,7 +74,7 @@ static void sync_init(struct update_subgroup *subgrp,
|
||||
XCALLOC(MTYPE_BGP_SYNCHRONISE, sizeof(struct bgp_synchronize));
|
||||
bgp_adv_fifo_init(&subgrp->sync->update);
|
||||
bgp_adv_fifo_init(&subgrp->sync->withdraw);
|
||||
bgp_adv_fifo_init(&subgrp->sync->withdraw_low);
|
||||
|
||||
subgrp->hash =
|
||||
hash_create(bgp_advertise_attr_hash_key,
|
||||
bgp_advertise_attr_hash_cmp, "BGP SubGroup Hash");
|
||||
|
@ -585,11 +585,9 @@ static inline void bgp_announce_peer(struct peer *peer)
|
||||
*/
|
||||
static inline int advertise_list_is_empty(struct update_subgroup *subgrp)
|
||||
{
|
||||
if (bgp_adv_fifo_count(&subgrp->sync->update)
|
||||
|| bgp_adv_fifo_count(&subgrp->sync->withdraw)
|
||||
|| bgp_adv_fifo_count(&subgrp->sync->withdraw_low)) {
|
||||
if (bgp_adv_fifo_count(&subgrp->sync->update) ||
|
||||
bgp_adv_fifo_count(&subgrp->sync->withdraw))
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user