ipsec: Store thread-index in buffer meta-data during SA handoff
[vpp.git] / src / vnet / buffer.h
index bdb5892..27aeb3b 100644 (file)
@@ -309,8 +309,11 @@ typedef struct
     /* interface output features */
     struct
     {
+      /* don't overlap the adjcencies nor flow-hash */
+      u32 __pad[3];
       u32 sad_index;
       u32 protect_index;
+      u16 thread_index;
     } ipsec;
 
     /* MAP */
@@ -378,6 +381,7 @@ typedef struct
     struct
     {
       u32 flags;
+      u32 required_thread_index;
     } snat;
 
     u32 unused[6];
@@ -458,7 +462,8 @@ typedef struct
   struct
   {
     u32 arc_next;
-    u32 unused;
+    /* cached session index from previous node */
+    u32 cached_session_index;
   } nat;
 
   union