summaryrefslogtreecommitdiffstats
path: root/src/vnet/buffer.h
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2021-03-09 17:53:47 +0100
committerKlement Sekera <ksekera@cisco.com>2021-03-09 17:54:22 +0100
commitd2b69975731b786a05982677a7c39478905b25c6 (patch)
tree71dbf190c4fc544e14e37b3ec235ac3690026add /src/vnet/buffer.h
parent31f0526852de07422206c5caed77fefa8bbed139 (diff)
nat: fix dst nat thread issues
Make sure packet lands on the right thread for dst nat case. Type: fix Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I0ec4e4c2bb3fa80ff73fac588c36d36420ba68fa
Diffstat (limited to 'src/vnet/buffer.h')
-rw-r--r--src/vnet/buffer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vnet/buffer.h b/src/vnet/buffer.h
index 37db4130514..00e9aa698c6 100644
--- a/src/vnet/buffer.h
+++ b/src/vnet/buffer.h
@@ -480,8 +480,11 @@ typedef struct
struct
{
u32 arc_next;
- /* cached session index from previous node */
- u32 cached_session_index;
+ union
+ {
+ u32 cached_session_index;
+ u32 cached_dst_nat_session_index;
+ };
} nat;
union