summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_damp.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-08-02 12:01:26 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-08-03 20:54:47 +0200
commit303b8d24d2ea171936c613f6a99cce910c42c43d (patch)
tree391d402337e6bc473856b9c213d055b218d5f663 /bgpd/bgp_damp.c
parentRevert "bgpd: fix incorrect usage of slist in dampening" (diff)
downloadfrr-303b8d24d2ea171936c613f6a99cce910c42c43d.tar.xz
frr-303b8d24d2ea171936c613f6a99cce910c42c43d.zip
Revert "bgpd: fix missing list add in dampening"
This reverts commit cd58568b1889df753aa258ee61b6d949b1ce6fb9.
Diffstat (limited to 'bgpd/bgp_damp.c')
-rw-r--r--bgpd/bgp_damp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index 7f1abb73c..20dfef759 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. */