Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
ipsec: move the IPSec SA pool out of ipsec_main
[vpp.git]
/
src
/
vnet
/
ipsec
/
esp_encrypt.c
diff --git
a/src/vnet/ipsec/esp_encrypt.c
b/src/vnet/ipsec/esp_encrypt.c
index
8251e82
..
16bca1d
100644
(file)
--- a/
src/vnet/ipsec/esp_encrypt.c
+++ b/
src/vnet/ipsec/esp_encrypt.c
@@
-646,7
+646,7
@@
esp_encrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
current_sa_bytes);
current_sa_packets = current_sa_bytes = 0;
- sa0 =
pool_elt_at_index (im->sad,
sa_index0);
+ sa0 =
ipsec_sa_get (
sa_index0);
/* fetch the second cacheline ASAP */
CLIB_PREFETCH (sa0->cacheline1, CLIB_CACHE_LINE_BYTES, LOAD);