From 909e542af09d1903903eca79fb6dba90cb121e84 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 26 Mar 2024 11:05:26 +0200 Subject: [PATCH] bgpd: Put BGP_DEBUG/CONF_BGP_DEBUG under ulikely() optimization Signed-off-by: Donatas Abraitis --- bgpd/bgp_debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_debug.h b/bgpd/bgp_debug.h index 5b09501852..8b66326d29 100644 --- a/bgpd/bgp_debug.h +++ b/bgpd/bgp_debug.h @@ -156,8 +156,8 @@ struct bgp_debug_filter { TERM_DEBUG_OFF(a, b); \ } while (0) -#define BGP_DEBUG(a, b) (term_bgp_debug_ ## a & BGP_DEBUG_ ## b) -#define CONF_BGP_DEBUG(a, b) (conf_bgp_debug_ ## a & BGP_DEBUG_ ## b) +#define BGP_DEBUG(a, b) (unlikely(term_bgp_debug_##a & BGP_DEBUG_##b)) +#define CONF_BGP_DEBUG(a, b) (unlikely(conf_bgp_debug_##a & BGP_DEBUG_##b)) extern const char *const bgp_type_str[]; -- 2.39.5