diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-03-26 10:05:26 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-03-26 15:51:58 +0100 |
commit | 909e542af09d1903903eca79fb6dba90cb121e84 (patch) | |
tree | 7f38377371635896ad6412e06e192f4c64f2e028 /bgpd/bgp_debug.h | |
parent | Merge pull request #15609 from anlancs/fix/doc-isis-hello (diff) | |
download | frr-909e542af09d1903903eca79fb6dba90cb121e84.tar.xz frr-909e542af09d1903903eca79fb6dba90cb121e84.zip |
bgpd: Put BGP_DEBUG/CONF_BGP_DEBUG under ulikely() optimization
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_debug.h')
-rw-r--r-- | bgpd/bgp_debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_debug.h b/bgpd/bgp_debug.h index 5b0950185..8b66326d2 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[]; |