numam-dpdk/examples/ipsec-secgw
Akhil Goyal 1b7bfa14f5 examples/ipsec-secgw: fix pool usage for security session
Currently, two separate mempools are being used for creating crypto
sessions and its private data.
crypto sessions are created and initialized separately, so a separate
mempool is passed to each API, but in case of security sessions, where
only one API create and initialize the private data as well.
So if session mempool is passed to create a security session, the
mempool element size is not sufficient enough to hold the private
data as well.
As a perfect solution, the security session create API should take 2
mempools for header and private data and initiatlize accordingly,
but that would mean an API breakage, which will be done in the next
release cycle. So introducing this patch as a workaround to resolve this
issue.

Fixes: 261bbff75e ("examples: use separate crypto session mempools")
Cc: stable@dpdk.org

Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2019-04-23 14:44:26 +02:00
..
test examples/ipsec-secgw: fix test script 2019-04-02 16:50:24 +02:00
ep0.cfg
ep1.cfg
esp.c examples/ipsec-secgw: fix debug logs 2019-03-22 14:27:46 +01:00
esp.h
ipip.h
ipsec_process.c examples/ipsec_secgw: fix possible null dereference 2019-04-02 16:50:24 +02:00
ipsec-secgw.c examples/ipsec-secgw: fix pool usage for security session 2019-04-23 14:44:26 +02:00
ipsec.c examples/ipsec-secgw: fix pool usage for security session 2019-04-23 14:44:26 +02:00
ipsec.h examples/ipsec-secgw: fix SPD no-match case 2019-04-23 14:44:01 +02:00
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00
meson.build examples/ipsec-secgw: make data-path to use IPsec library 2019-01-10 16:57:22 +01:00
parser.c examples/ipsec-secgw: allow to specify neighbour MAC address 2019-01-10 16:57:22 +01:00
parser.h examples/ipsec-secgw: allow to specify neighbour MAC address 2019-01-10 16:57:22 +01:00
rt.c
sa.c examples/ipsec-secgw: fix SPD no-match case 2019-04-23 14:44:01 +02:00
sp4.c examples/ipsec-secgw: fix SPD no-match case 2019-04-23 14:44:01 +02:00
sp6.c examples/ipsec-secgw: fix SPD no-match case 2019-04-23 14:44:01 +02:00