mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 16:24:52 +00:00
bgpd: Don't increment twice notification sent stats counter
Before: ``` $ vtysh -c 'clear ip bgp 192.168.10.17' $ vtysh -c 'show bgp neighbor 192.168.10.17 json' | jq '."192.168.10.17".messageStats.notificationsSent' 2 ``` After: ``` $ vtysh -c 'clear ip bgp 192.168.10.17' $ vtysh -c 'show bgp neighbor 192.168.10.17 json' | jq '."192.168.10.17".messageStats.notificationsSent' 1 ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
ac425bfc2b
commit
41b1d7a3a4
@ -733,7 +733,6 @@ static void bgp_write_notify(struct peer *peer)
|
||||
|
||||
/* Type should be notify. */
|
||||
atomic_fetch_add_explicit(&peer->notify_out, 1, memory_order_relaxed);
|
||||
peer->notify_out++;
|
||||
|
||||
/* Double start timer. */
|
||||
peer->v_start *= 2;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user