plugins: odp: Add support for async crypto mode 10/9610/17
authorSzymon Sliwa <[email protected]>
Fri, 26 Jan 2018 11:30:41 +0000 (12:30 +0100)
committerSzymon Sliwa <[email protected]>
Tue, 6 Feb 2018 13:48:32 +0000 (14:48 +0100)
commitafb5b006e4451a9dcb3270d4a5755413e65f5497
treee5a8de9f1c1bda994b9a9248cab18d8506b052c4
parent9775521a9ca1466e9a02fe4d69afafc55dcbc09c
plugins: odp: Add support for async crypto mode

By default ipsec picks asynchronuous crypto. After the operation it may
turn out that the operation was performed synchronously anyways, in such
case the packet is send further by the esp_* node because there will be
no notification event sent about the crypto completion.

To use asynchronous mode put async in the odp section
of the startup.conf file,
like this:

odp {
async
}

Falls back to synchronous mode.

Change-Id: I5301df5f1c93a5ccd53a9c0ed2c4cacb9ca5fdd4
Signed-off-by: Szymon Sliwa <[email protected]>
src/plugins/odp.am
src/plugins/odp/ipsec/crypto_input.c [new file with mode: 0644]
src/plugins/odp/ipsec/esp_decrypt.c
src/plugins/odp/ipsec/esp_encrypt.c
src/plugins/odp/ipsec/ipsec.c
src/plugins/odp/odp_packet.c
src/vpp/conf/startup.conf