From bc53667dc73f2507a08a053dca13e2e82b80b7e5 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 12 Dec 2023 11:38:23 +0200 Subject: [PATCH] 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 --- bgpd/bgp_updgrp.c | 1 + 1 file changed, 1 insertion(+) 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);