Skip to content

Commit

Permalink
Revert "bgpd: fix missing list add in dampening"
Browse files Browse the repository at this point in the history
This reverts commit cd58568.
  • Loading branch information
idryzhov committed Aug 3, 2021
1 parent aa95cf7 commit 303b8d2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bgpd/bgp_damp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 303b8d2

Please sign in to comment.