Skip to content

Commit

Permalink
Merge pull request #15619 from opensourcerouting/fix/memory_optimizat…
Browse files Browse the repository at this point in the history
…ions

bgpd: Put BGP_DEBUG/CONF_BGP_DEBUG under ulikely() optimization
  • Loading branch information
donaldsharp authored Apr 29, 2024
2 parents 611d6ac + 909e542 commit 65c2593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[];

Expand Down

0 comments on commit 65c2593

Please sign in to comment.