Skip to content

Commit

Permalink
bgpd: Put BGP_DEBUG/CONF_BGP_DEBUG under ulikely() optimization
Browse files Browse the repository at this point in the history
Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Mar 26, 2024
1 parent 0b1af4c commit 909e542
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 @@ -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[];

Expand Down

0 comments on commit 909e542

Please sign in to comment.