diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-12 10:38:23 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-12 10:38:23 +0100 |
commit | bc53667dc73f2507a08a053dca13e2e82b80b7e5 (patch) | |
tree | 8a6618b9ae8c17bd8ad967a7174b4d90f2bae6ca /bgpd | |
parent | bgpd: Add sub_sort for update group debug logging (diff) | |
download | frr-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.c | 1 |
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); |