mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 07:03:59 +00:00
bgpd: Mark debugs as unlikely in bgp_withdraw
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
ea4823964c
commit
fc818fe6ad
@ -5555,7 +5555,7 @@ void bgp_withdraw(struct peer *peer, const struct prefix *p,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* Logging. */
|
/* 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,
|
bgp_debug_rdpfxpath2str(afi, safi, prd, p, label, num_labels,
|
||||||
addpath_id ? 1 : 0, addpath_id, NULL,
|
addpath_id ? 1 : 0, addpath_id, NULL,
|
||||||
pfx_buf, sizeof(pfx_buf));
|
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);
|
vpn_leak_from_vrf_withdraw(bgp_get_default(), bgp, pi);
|
||||||
} else if ((SAFI_MPLS_VPN == safi) && (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT))
|
} else if ((SAFI_MPLS_VPN == safi) && (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT))
|
||||||
vpn_leak_to_vrf_withdraw(pi);
|
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,
|
bgp_debug_rdpfxpath2str(afi, safi, prd, p, label, num_labels,
|
||||||
addpath_id ? 1 : 0, addpath_id, NULL,
|
addpath_id ? 1 : 0, addpath_id, NULL,
|
||||||
pfx_buf, sizeof(pfx_buf));
|
pfx_buf, sizeof(pfx_buf));
|
||||||
|
Loading…
Reference in New Issue
Block a user