nat: ED: store both thread&session idx in hash
By storing thread and session index in hash table we are able to skip
multiple hash lookups in multi-worker scenario, which were used for
handoff before. Also, by storing sesion index in vnet_buffer2, we can
avoid repeating the lookup after handoff.
Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I406fb12f4e2dd8f4a5ca5d83d59dbc37e1af9abf
diff --git a/src/vnet/buffer.h b/src/vnet/buffer.h
index bdb5892..50515c4 100644
--- a/src/vnet/buffer.h
+++ b/src/vnet/buffer.h
@@ -458,7 +458,7 @@
struct
{
u32 arc_next;
- u32 unused;
+ u32 ed_out2in_nat_session_index;
} nat;
union