ipsec: Submit fuller async frames 66/31466/2
authorNeale Ranns <neale@graphiant.com>
Fri, 26 Feb 2021 10:35:33 +0000 (10:35 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 5 Mar 2021 10:34:55 +0000 (10:34 +0000)
commitfc81134a26458a8358483b0d2908a6b83afb7f11
tree225398a6c3193f37999909e91b0d95513d0430ec
parent3a9bd7608f74594ab6ebc2fb20786bceaca72dea
ipsec: Submit fuller async frames

Type: improvement

In the current scheme an async frame is submitted each time the crypto
op changes. thus happens each time a different SA is used and thus
potentially many times per-node. thi can lead to the submision of many
partially filled frames.

change the scheme to construct as many full frames as possible in the
node and submit them all at the end. the frame owner ship is passed to
the user so that there can be more than one open frame per-op at any
given time.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ic2305581d7b5aa26133f52115e0cd28ba956ed55
src/vnet/crypto/crypto.h
src/vnet/ipsec/esp_decrypt.c
src/vnet/ipsec/esp_encrypt.c
src/vnet/ipsec/ipsec.h
test/test_ipsec_esp.py
test/vpp_ipsec.py