]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Create another update-group depending on max bgp packet size
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 2 Jul 2021 13:48:11 +0000 (16:48 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Wed, 7 Jul 2021 20:29:41 +0000 (23:29 +0300)
This should be garuanteed that we create a separate update-group if
bgp max packet size differs.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_updgrp.c

index 2600eda42eb27083993f0377851e74536e8a14c9..00b31b93b39fc6212d439f118b33657ff1e05cc1 100644 (file)
@@ -339,6 +339,7 @@ static unsigned int updgrp_hash_key_make(const void *p)
                          key);
        key = jhash_1word(peer->v_routeadv, key);
        key = jhash_1word(peer->change_local_as, key);
+       key = jhash_1word(peer->max_packet_size, key);
 
        if (peer->group)
                key = jhash_1word(jhash(peer->group->name,