mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 00:27:07 +00:00
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>
This commit is contained in:
parent
29d33bd57d
commit
bc53667dc7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user