summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-02-25 10:05:32 +0000
committerMatthew Smith <mgsmith@netgate.com>2021-02-25 16:12:48 +0000
commit8c609af230c157304c3ddb09bfcd6d8098c6ea92 (patch)
tree42ba1aab56a4ea16ff67bcdcd0f15f6c300a5671 /src/vnet
parent2d49830c7dabd3104770957724d61f8fa6998235 (diff)
tests: Add tests for IPSec async mode using the crypto SW scheduler
Type: test Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: Iabc8f2b09ee10a82aacebd36acfe8648cf69b7d7
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ipsec/esp_decrypt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/ipsec/esp_decrypt.c b/src/vnet/ipsec/esp_decrypt.c
index 0924351a9d4..274fbf810c0 100644
--- a/src/vnet/ipsec/esp_decrypt.c
+++ b/src/vnet/ipsec/esp_decrypt.c
@@ -1234,7 +1234,8 @@ esp_decrypt_inline (vlib_main_t * vm,
/* no post process in async */
vlib_node_increment_counter (vm, node->node_index,
- ESP_DECRYPT_ERROR_RX_PKTS, n_left);
+ ESP_DECRYPT_ERROR_RX_PKTS,
+ from_frame->n_vectors);
if (n_async_drop)
vlib_buffer_enqueue_to_next (vm, node, from, nexts, n_async_drop);