aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/odp/ipsec/crypto_input.c
AgeCommit message (Collapse)AuthorFilesLines
2018-02-21plugins: odp: Add error checks in IPsec nodesSzymon Sliwa1-3/+19
Change-Id: I62cba4a845c91b208420f3f6b20781d75976c113 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-02-21plugins: odp: ipsec: fix style of crypto_inpuc.cSzymon Sliwa1-58/+73
Change-Id: I89cdac40c9f768f42443406cebf7257c3e139b47 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-02-21plugins: odp: Cosmetic changes in the IPsec implementationSzymon Sliwa1-1/+1
1) renamed ipsec_api to enable_odp_ipsec, for consistency 2) added crude ASSERTs to make sure the configuration is sane 3) removed passing ipsec_api as argument, as this is a global flag now 4) reorder code - put ipsec initialization before putting workers in polling mode 5) remove not used recycle vector from esp_encrypt.c/esp_decrypt.c 6) change clib_error_return to clib_error in ipsec.c, as clib_error_return silently passes when 0 is the first argument Change-Id: Id2c6da985e872f12c8409918fb9cc6113b486d10 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-02-19plugins: odp: Add asynchronous IPsec API nodesSzymon Sliwa1-7/+83
To use asynchronous mode put async in the odp section of the startup.conf file, like this: odp { enable-odp-ipsec async } Falls back to synchronous mode. Change-Id: Iacfdc03158228f4385511e6736fb24a97284320c Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-02-19plugins: odp: ipsec: add error checkSzymon Sliwa1-5/+18
Add a check if crypto operation was successful Change-Id: Iaa7c4df89aab309a4c85300240d245b4cdb30533 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-02-19plugins: odp: ipsec: style changesSzymon Sliwa1-58/+73
1) add footer to check style 2) fix style 3) change the TODO note to a more descriptive one Change-Id: I232c937c13bc0d5f206ebb4426b50bebc512a192 Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-02-06plugins: odp: Add support for async crypto modeSzymon Sliwa1-0/+155
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 <szs@semihalf.com>