Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ipsecesp.h
          +++ new/usr/src/uts/common/inet/ipsecesp.h
↓ open down ↓ 53 lines elided ↑ open up ↑
  54   54          kmutex_t                ipsecesp_param_lock;    /* Protects params */
  55   55  
  56   56          /* Packet dropper for ESP drops. */
  57   57          ipdropper_t             esp_dropper;
  58   58  
  59   59          kstat_t                 *esp_ksp;
  60   60          struct esp_kstats_s     *esp_kstats;
  61   61  
  62   62          /*
  63   63           * Keysock instance of ESP.  There can be only one per stack instance.
  64      -         * Use casptr() on this because I don't set it until KEYSOCK_HELLO
  65      -         * comes down.
       64 +         * Use atomic_cas_ptr() on this because I don't set it until
       65 +         * KEYSOCK_HELLO comes down.
  66   66           * Paired up with the esp_pfkey_q is the esp_event, which will age SAs.
  67   67           */
  68   68          queue_t                 *esp_pfkey_q;
  69   69          timeout_id_t            esp_event;
  70   70  
  71   71          sadbp_t                 esp_sadb;
  72   72  };
  73   73  typedef struct ipsecesp_stack ipsecesp_stack_t;
  74   74  
  75   75  /* Define *this* NDD variable here because we use it outside ESP proper. */
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX