]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Increment version number even when no data is sent
authorDonald Sharp <sharpd@nvidia.com>
Sat, 11 Mar 2023 17:05:44 +0000 (12:05 -0500)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sun, 12 Mar 2023 19:49:38 +0000 (19:49 +0000)
commit84b56b4b142f9f5ddaeb49918c7911a516663ff5
tree54b60d8732b55cbada43335fd5f6af7660274eae
parent2cf050ffc0a2cdf9792f9982375dc26974473716
bgpd: Increment version number even when no data is sent

When an update group decides to not send a prefix
announcement because it has not changed, still increment
the version number.  Why?  To allow for the situation
where you have say 2 peers in 1 peer group and shortly
after they come up a 3rd peer comes up.  It will be
placed into a separate update group and could be
coalesced down, when it finishes updating all data
to it.  Now imagine that a single prefix changes at
this point in time as well.  Then first 2 peers may
decide to not send the data, since nothing has changed.
While the 3rd peer will and since the versions numbers
never match they will never coalesce.  So when the decision
is made to skip, update the version number as well.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit a8038460bd2b413a0c082fbd629cdae00708b133)
bgpd/bgp_updgrp_adv.c