diff options
author | Neale Ranns <neale@graphiant.com> | 2021-02-10 08:42:49 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2021-02-12 20:09:28 +0000 |
commit | aa7d7662f63bfe6643b193f74288aea67f883744 (patch) | |
tree | bc69b3a3be3aed942548247a19735471a0b95db9 /src/vnet/ipsec/ah_decrypt.c | |
parent | 088bf1dcc32fcd26dac312a5561e0f263fa401d9 (diff) |
ipsec: Store thread-index in buffer meta-data during SA handoff
Type: improvement
negates the need to load the SA in the handoff node.
don't prefetch the packet data, it's not needed.
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I340472dc437f050cc1c3c11dfeb47ab09c609624
Diffstat (limited to 'src/vnet/ipsec/ah_decrypt.c')
-rw-r--r-- | src/vnet/ipsec/ah_decrypt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ah_decrypt.c b/src/vnet/ipsec/ah_decrypt.c index 03a9dc859c8..107ccd2146d 100644 --- a/src/vnet/ipsec/ah_decrypt.c +++ b/src/vnet/ipsec/ah_decrypt.c @@ -187,6 +187,7 @@ ah_decrypt_inline (vlib_main_t * vm, if (PREDICT_TRUE (thread_index != sa0->thread_index)) { + vnet_buffer (b[0])->ipsec.thread_index = sa0->thread_index; next[0] = AH_DECRYPT_NEXT_HANDOFF; goto next; } |