]> git.puffer.fish Git - mirror/frr.git/commit
ldpd: be more conservative with labels
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 21 Apr 2017 18:41:14 +0000 (15:41 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 5 Jun 2017 15:23:59 +0000 (12:23 -0300)
commita8e8b867974cfbc37aeabe34b067f10448690bd2
tree888d8270c507432ca1afa78751128c095bf6d77b
parent9b2868bc019b15a878b3b08d165194b8c00b0e63
ldpd: be more conservative with labels

On unstable networks, routes can be lost and relearned very often. If
we deallocate the input label every time a route is lost and allocate
a new one when the route is relearned, a lot of changes are made in vain.

This patch introduces a logic in which labels are preserved for at least
five minutes before being deallocated by the LIB garbage collector. This
is consistent with what other implementations do.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde_lib.c