diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-12 11:38:23 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-12 11:38:23 +0200 |
| commit | bc53667dc73f2507a08a053dca13e2e82b80b7e5 (patch) | |
| tree | 8a6618b9ae8c17bd8ad967a7174b4d90f2bae6ca | |
| parent | 29d33bd57de1bd98b3e63b6b72467a9e471e0eef (diff) | |
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>
| -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 23dafc85cf..40bc167584 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); |
