]> git.puffer.fish Git - matthieu/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>
Wed, 26 Apr 2017 13:36:33 +0000 (10:36 -0300)
commit095f12f92b198669af5bfe53be9a04a6a28de6f9
tree532040bcfe3ba54a563e618a96341dcc5359c5fd
parent90989cb30668f46124946a7770b2d148c745b165
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