This patchset fixes the issue of the first inbound packet being dropped for inline crypto. Changes in v3: -------------- The previous refactoring of the create_session() function has been dropped. The create_session() function is now called from sa_init() at startup.
The following functions have been added: crypto_devid_fill() in ipsec-secgw.c check_cryptodev_capability() in ipsec.c check_cryptodev_aead_capability() in ipsec.c create_sec_session() and create_crypto_session() in ipsec.c The create_session() function has been refactored to call the create_sec_session() and create_crypto_session() functions. Changes in v2: -------------- The first three patches of the v1 have been squashed. The commit message for the squashed patch has been updated. Patches 4,5 and 6 of the v1 have been dropped from this patchset. A patch to fix the test scripts has been added. Bernard Iremonger (2): examples/ipsec-secgw: fix 1st packet dropped for inline crypto examples/ipsec-secgw/test: fix inline test scripts examples/ipsec-secgw/ipsec-secgw.c | 271 +++++++------ examples/ipsec-secgw/ipsec.c | 569 ++++++++++++++------------- examples/ipsec-secgw/ipsec.h | 10 +- examples/ipsec-secgw/ipsec_process.c | 38 +- examples/ipsec-secgw/sa.c | 42 +- examples/ipsec-secgw/test/trs_aesgcm_defs.sh | 10 - examples/ipsec-secgw/test/tun_aesgcm_defs.sh | 10 - 7 files changed, 495 insertions(+), 455 deletions(-) -- 2.7.4