nat: reduce number of hash tables for EI NAT
[vpp.git] / src / plugins / nat / nat.h
index 7fa1ef7..86f6342 100644 (file)
@@ -492,10 +492,6 @@ typedef struct
 
 typedef struct
 {
-  /* Main lookup tables */
-  clib_bihash_8_8_t out2in;
-  clib_bihash_8_8_t in2out;
-
   /* Find-a-user => src address lookup */
   clib_bihash_8_8_t user_hash;
 
@@ -590,6 +586,10 @@ typedef struct snat_main_s
   /* Static mapping pool */
   snat_static_mapping_t *static_mappings;
 
+  /* Endpoint independent lookup tables */
+  clib_bihash_8_8_t in2out;
+  clib_bihash_8_8_t out2in;
+
   /* Endpoint dependent lookup table */
   clib_bihash_16_8_t flow_hash;