diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-04-29 09:26:03 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-29 09:26:03 -0400 | 
| commit | 65c2593a12dcd2688e2d83eba6a39c0df519c4b1 (patch) | |
| tree | fc4f8b04ae857a386e514fc10253a2dcbd3fdb6d /bgpd/bgp_debug.h | |
| parent | 611d6ac0d86d31abdd88a3c90c9adfdd99f48186 (diff) | |
| parent | 909e542af09d1903903eca79fb6dba90cb121e84 (diff) | |
Merge pull request #15619 from opensourcerouting/fix/memory_optimizations
bgpd: Put BGP_DEBUG/CONF_BGP_DEBUG under ulikely() optimization
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 ffe715a42f..673926f24c 100644 --- a/bgpd/bgp_debug.h +++ b/bgpd/bgp_debug.h @@ -153,8 +153,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[];  | 
