summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-12-12 10:38:23 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-12-12 10:38:23 +0100
commitbc53667dc73f2507a08a053dca13e2e82b80b7e5 (patch)
tree8a6618b9ae8c17bd8ad967a7174b4d90f2bae6ca /bgpd
parentbgpd: Add sub_sort for update group debug logging (diff)
downloadfrr-bc53667dc73f2507a08a053dca13e2e82b80b7e5.tar.xz
frr-bc53667dc73f2507a08a053dca13e2e82b80b7e5.zip
bgpd: Use sub_sort also when creating a hash key for update-groups
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>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_updgrp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c
index 23dafc85c..40bc16758 100644
--- a/bgpd/bgp_updgrp.c
+++ b/bgpd/bgp_updgrp.c
@@ -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);