]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Only grab the confed path count if we are comparing it
authorDonald Sharp <sharpd@nvidia.com>
Thu, 24 Oct 2024 15:40:56 +0000 (11:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 25 Oct 2024 01:01:26 +0000 (21:01 -0400)
commite68550b8d8371db16d9c7600bfb625354ae4395c
treebc0b9543a987c88b5901e56c3ba6b11056689fa4
parented94fbfe5b1ec2d2d191d30b169e8f40ce48ecdb
bgpd: Only grab the confed path count if we are comparing it

This is just a small optimization but when calling path_info_cmp
hundreds of millions of times this adds up.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_route.c