mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 16:26:22 +00:00
Merge pull request #15619 from opensourcerouting/fix/memory_optimizations
bgpd: Put BGP_DEBUG/CONF_BGP_DEBUG under ulikely() optimization
This commit is contained in:
commit
65c2593a12
@ -153,8 +153,8 @@ struct bgp_debug_filter {
|
|||||||
TERM_DEBUG_OFF(a, b); \
|
TERM_DEBUG_OFF(a, b); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define BGP_DEBUG(a, b) (term_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) (conf_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[];
|
extern const char *const bgp_type_str[];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user