From aa7d7662f63bfe6643b193f74288aea67f883744 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 10 Feb 2021 08:42:49 +0000 Subject: 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 Change-Id: I340472dc437f050cc1c3c11dfeb47ab09c609624 --- src/vnet/ipsec/esp_decrypt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/ipsec/esp_decrypt.c') diff --git a/src/vnet/ipsec/esp_decrypt.c b/src/vnet/ipsec/esp_decrypt.c index e5277b1e1c2..a9aa9b8b7f4 100644 --- a/src/vnet/ipsec/esp_decrypt.c +++ b/src/vnet/ipsec/esp_decrypt.c @@ -1123,6 +1123,7 @@ esp_decrypt_inline (vlib_main_t * vm, if (PREDICT_FALSE (thread_index != sa0->thread_index)) { + vnet_buffer (b[0])->ipsec.thread_index = sa0->thread_index; esp_set_next_index (is_async, from, nexts, from[b - bufs], &n_async_drop, ESP_DECRYPT_NEXT_HANDOFF, next); next[0] = ESP_DECRYPT_NEXT_HANDOFF; -- cgit 1.2.3-korg