diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-03-09 17:53:47 +0100 |
---|---|---|
committer | Klement Sekera <ksekera@cisco.com> | 2021-03-09 17:54:22 +0100 |
commit | d2b69975731b786a05982677a7c39478905b25c6 (patch) | |
tree | 71dbf190c4fc544e14e37b3ec235ac3690026add /src/vnet/buffer.h | |
parent | 31f0526852de07422206c5caed77fefa8bbed139 (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.h | 7 |
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 |