From: Igor Ryzhov Date: Mon, 2 Aug 2021 10:01:26 +0000 (+0300) Subject: Revert "bgpd: fix missing list add in dampening" X-Git-Tag: frr-8.0.1~29^2~10 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=60d5f8e2438721e96dfb905279d5f6c805aed9b4;p=matthieu%2Ffrr.git Revert "bgpd: fix missing list add in dampening" This reverts commit cd58568b1889df753aa258ee61b6d949b1ce6fb9. --- diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c index 8c9cc6ccb9..2dbe8e6899 100644 --- a/bgpd/bgp_damp.c +++ b/bgpd/bgp_damp.c @@ -342,14 +342,7 @@ int bgp_damp_withdraw(struct bgp_path_info *path, struct bgp_dest *dest, (bgp_path_info_extra_get(path))->damp_info = bdi; bgp_no_reuse_list_add(bdi, bdc); } else { - if (bdi->config != bdc) { - bgp_damp_info_claim(bdi, bdc); - if (bdi->index == BGP_DAMP_NO_REUSE_LIST_INDEX) - bgp_reuselist_add(&bdc->no_reuse_list, bdi); - else - bgp_reuselist_add(&bdc->reuse_list[bdi->index], - bdi); - } + bgp_damp_info_claim(bdi, bdc); last_penalty = bdi->penalty; /* 1. Set t-diff = t-now - t-updated. */