Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip_ire.h
          +++ new/usr/src/uts/common/inet/ip_ire.h
↓ open down ↓ 94 lines elided ↑ open up ↑
  95   95  #define MATCH_IRE_SRC_ILL       0x0100  /* ire_ill uses a src address on ill */
  96   96  #define MATCH_IRE_DIRECT        0x0200  /* Don't match indirect routes */
  97   97  
  98   98  #define MAX_IRE_RECURSION       4       /* Max IREs in ire_route_recursive */
  99   99  
 100  100  
 101  101  /*
 102  102   * We use atomics so that we get an accurate accounting on the ires.
 103  103   * Otherwise we can't determine leaks correctly.
 104  104   */
 105      -#define BUMP_IRE_STATS(ire_stats, x) atomic_add_64(&(ire_stats).x, 1)
      105 +#define BUMP_IRE_STATS(ire_stats, x) atomic_inc_64(&(ire_stats).x)
 106  106  
 107  107  #ifdef _KERNEL
 108  108  struct ts_label_s;
 109  109  struct nce_s;
 110  110  /*
 111  111   * structure for passing args between ire_ftable_lookup and ire_find_best_route
 112  112   */
 113  113  typedef struct ire_ftable_args_s {
 114  114          in6_addr_t              ift_addr_v6;
 115  115          in6_addr_t              ift_mask_v6;
↓ open down ↓ 241 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX