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:
Donald Sharp 2023-07-21 12:46:31 -04:00 committed by Mergify
parent a0b9010536
commit 577f06b556
3 changed files with 3 additions and 6 deletions

View File

@ -100,7 +100,6 @@ struct bgp_adj_in {
struct bgp_synchronize { struct bgp_synchronize {
struct bgp_adv_fifo_head update; struct bgp_adv_fifo_head update;
struct bgp_adv_fifo_head withdraw; struct bgp_adv_fifo_head withdraw;
struct bgp_adv_fifo_head withdraw_low;
}; };
/* BGP adjacency linked list. */ /* BGP adjacency linked list. */

View File

@ -74,7 +74,7 @@ static void sync_init(struct update_subgroup *subgrp,
XCALLOC(MTYPE_BGP_SYNCHRONISE, sizeof(struct bgp_synchronize)); XCALLOC(MTYPE_BGP_SYNCHRONISE, sizeof(struct bgp_synchronize));
bgp_adv_fifo_init(&subgrp->sync->update); bgp_adv_fifo_init(&subgrp->sync->update);
bgp_adv_fifo_init(&subgrp->sync->withdraw); bgp_adv_fifo_init(&subgrp->sync->withdraw);
bgp_adv_fifo_init(&subgrp->sync->withdraw_low);
subgrp->hash = subgrp->hash =
hash_create(bgp_advertise_attr_hash_key, hash_create(bgp_advertise_attr_hash_key,
bgp_advertise_attr_hash_cmp, "BGP SubGroup Hash"); bgp_advertise_attr_hash_cmp, "BGP SubGroup Hash");

View File

@ -585,11 +585,9 @@ static inline void bgp_announce_peer(struct peer *peer)
*/ */
static inline int advertise_list_is_empty(struct update_subgroup *subgrp) static inline int advertise_list_is_empty(struct update_subgroup *subgrp)
{ {
if (bgp_adv_fifo_count(&subgrp->sync->update) if (bgp_adv_fifo_count(&subgrp->sync->update) ||
|| bgp_adv_fifo_count(&subgrp->sync->withdraw) bgp_adv_fifo_count(&subgrp->sync->withdraw))
|| bgp_adv_fifo_count(&subgrp->sync->withdraw_low)) {
return 0; return 0;
}
return 1; return 1;
} }