mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 17:16:11 +00:00
bgpd: Create separate udpate-group when using maximum-prefix-out
command
This is needed to avoid mangling update-group which is used for many peers. Sent prefix count is managed by update-groups. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
fc6a59c328
commit
d6fbec85fe
@ -373,11 +373,13 @@ static unsigned int updgrp_hash_key_make(const void *p)
|
|||||||
* There are certain peers that must get their own update-group:
|
* There are certain peers that must get their own update-group:
|
||||||
* - lonesoul peers
|
* - lonesoul peers
|
||||||
* - peers that negotiated ORF
|
* - peers that negotiated ORF
|
||||||
|
* - maximum-prefix-out is set
|
||||||
*/
|
*/
|
||||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_LONESOUL)
|
if (CHECK_FLAG(peer->flags, PEER_FLAG_LONESOUL)
|
||||||
|| CHECK_FLAG(peer->af_cap[afi][safi], PEER_CAP_ORF_PREFIX_SM_RCV)
|
|| CHECK_FLAG(peer->af_cap[afi][safi], PEER_CAP_ORF_PREFIX_SM_RCV)
|
||||||
|| CHECK_FLAG(peer->af_cap[afi][safi],
|
|| CHECK_FLAG(peer->af_cap[afi][safi],
|
||||||
PEER_CAP_ORF_PREFIX_SM_OLD_RCV))
|
PEER_CAP_ORF_PREFIX_SM_OLD_RCV)
|
||||||
|
|| CHECK_FLAG(peer->af_flags[afi][safi], PEER_FLAG_MAX_PREFIX_OUT))
|
||||||
key = jhash_1word(jhash(peer->host, strlen(peer->host), SEED2),
|
key = jhash_1word(jhash(peer->host, strlen(peer->host), SEED2),
|
||||||
key);
|
key);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user