IPSEC: move SA counters into the stats segment
[vpp.git] / src / vnet / ipsec / ipsec.h
index fd70967..3d81884 100644 (file)
@@ -119,11 +119,13 @@ typedef struct
 {
   /* pool of tunnel instances */
   ipsec_spd_t *spds;
+  /* Pool of security associations */
   ipsec_sa_t *sad;
+  /* pool of policies */
+  ipsec_policy_t *policies;
 
   /* pool of tunnel interfaces */
   ipsec_tunnel_if_t *tunnel_interfaces;
-  u32 *free_tunnel_if_indices;
 
   u32 **empty_buffers;
 
@@ -133,9 +135,6 @@ typedef struct
   vlib_main_t *vlib_main;
   vnet_main_t *vnet_main;
 
-  /* next node indices */
-  u32 feature_next_node_index[32];
-
   /* hashes */
   uword *spd_index_by_spd_id;
   uword *spd_index_by_sw_if_index;
@@ -175,9 +174,6 @@ typedef struct
   u32 ah_default_backend;
   /* index of default esp backend */
   u32 esp_default_backend;
-
-  /* helper for sort function */
-  ipsec_spd_t *spd_to_sort;
 } ipsec_main_t;
 
 extern ipsec_main_t ipsec_main;