]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: remove extra hold-timer reset
authorQuentin Young <qlyoung@nvidia.com>
Wed, 16 Sep 2020 00:15:08 +0000 (20:15 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:24 +0000 (15:54 +0300)
Handler function doesn't need to reset the hold timer, this is done
during the FSM update.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
bgpd/bgp_packet.c

index 0883875a2197b490c820ee4f0fc1be3b15b1900f..6c077878b56ad2cb779de7058ce80e8a32c14300 100644 (file)
@@ -1782,10 +1782,6 @@ static int bgp_update_receive(struct peer *peer, bgp_size_t size)
 
        peer->update_time = bgp_clock();
 
-       /* Rearm holdtime timer */
-       BGP_TIMER_OFF(peer->t_holdtime);
-       bgp_timer_set(peer);
-
        return Receive_UPDATE_message;
 }