]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Use sub_sort also when creating a hash key for update-groups
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 12 Dec 2023 09:38:23 +0000 (11:38 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 12 Dec 2023 09:38:23 +0000 (11:38 +0200)
If OAD is not set or set at least for one peer in peer-group, then split, and
create a separate update-group for those peers.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_updgrp.c

index 23dafc85cf25d71ea7de796bde4b6d5b6ee944e1..40bc16758487cf7fe28651c365312094b1aadba7 100644 (file)
@@ -343,6 +343,7 @@ static unsigned int updgrp_hash_key_make(const void *p)
        key = 0;
 
        key = jhash_1word(peer->sort, key); /* EBGP or IBGP */
+       key = jhash_1word(peer->sub_sort, key); /* OAD */
        key = jhash_1word((peer->flags & PEER_UPDGRP_FLAGS), key);
        key = jhash_1word((flags & PEER_UPDGRP_AF_FLAGS), key);
        key = jhash_1word((uint32_t)peer->addpath_type[afi][safi], key);