From fc818fe6ad458d7edc6b2d0c9f12fc92945f3672 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 7 Nov 2024 11:50:23 -0500 Subject: [PATCH] bgpd: Mark debugs as unlikely in bgp_withdraw Signed-off-by: Donald Sharp --- bgpd/bgp_route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 6dc2e449ab..bc7904bde7 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5555,7 +5555,7 @@ void bgp_withdraw(struct peer *peer, const struct prefix *p, break; /* Logging. */ - if (bgp_debug_update(peer, p, NULL, 1)) { + if (unlikely(bgp_debug_update(peer, p, NULL, 1))) { bgp_debug_rdpfxpath2str(afi, safi, prd, p, label, num_labels, addpath_id ? 1 : 0, addpath_id, NULL, pfx_buf, sizeof(pfx_buf)); @@ -5572,7 +5572,7 @@ void bgp_withdraw(struct peer *peer, const struct prefix *p, vpn_leak_from_vrf_withdraw(bgp_get_default(), bgp, pi); } else if ((SAFI_MPLS_VPN == safi) && (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT)) vpn_leak_to_vrf_withdraw(pi); - } else if (bgp_debug_update(peer, p, NULL, 1)) { + } else if (unlikely(bgp_debug_update(peer, p, NULL, 1))) { bgp_debug_rdpfxpath2str(afi, safi, prd, p, label, num_labels, addpath_id ? 1 : 0, addpath_id, NULL, pfx_buf, sizeof(pfx_buf));