numam-dpdk/examples/ipsec-secgw
Vladimir Medvedkin 57ddbf7edd examples/ipsec-secgw: fix session mempool initialisation
Creation of a session mempool may fail in the case of a single lcore
and a low number of SA.

In case when there is only one lcore and number of configures SA less
then (0.5 * CDEV_MP_CACHE_SZ) then creation of the mempool fails with
EINVAL. This is because the number of requested items is less than
(cache size * CDEV_MP_CACHE_MULTIPLIER).

Hence, the number of elements in mempool is increased in such cases.

Fixes: e30b2833c4 ("security: update session create API")

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2020-11-02 09:24:41 +01:00
..
test examples: remove old build system references 2020-09-07 23:51:57 +02:00
ep0.cfg examples/ipsec-secgw: support flow director 2020-04-19 17:15:14 +02:00
ep1.cfg examples/ipsec-secgw: fix default configuration 2019-11-20 12:35:51 +01:00
esp.c examples/ipsec-secgw: support fallback session 2019-11-08 13:51:16 +01:00
esp.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
event_helper.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
event_helper.h examples/ipsec-secgw: add event mode 2020-04-05 18:26:04 +02:00
flow.c examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
flow.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
ipip.h examples/ipsec-secgw: update incremental checksum 2018-01-20 16:10:52 +01:00
ipsec_process.c examples/ipsec-secgw: add per-core packet statistics 2020-07-08 00:15:35 +02:00
ipsec_worker.c security: switch metadata to dynamic mbuf field 2020-10-31 16:13:11 +01:00
ipsec_worker.h examples/ipsec-secgw: add app mode worker 2020-04-05 18:26:04 +02:00
ipsec-secgw.c examples/ipsec-secgw: fix session mempool initialisation 2020-11-02 09:24:41 +01:00
ipsec-secgw.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
ipsec.c security: update session create API 2020-10-19 09:54:54 +02:00
ipsec.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
Makefile examples: remove legacy sections of makefiles 2020-09-07 16:53:41 +02:00
meson.build examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
parser.c examples/ipsec-secgw: use POSIX network address conversion 2020-10-23 11:02:13 +02:00
parser.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
rt.c examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
sa.c examples/ipsec-secgw: remove limitation for crypto sessions 2020-05-11 13:17:43 +02:00
sad.c examples/ipsec-secgw: add SAD cache 2020-02-05 15:20:51 +01:00
sad.h examples/ipsec-secgw: add event mode 2020-04-05 18:26:04 +02:00
sp4.c examples/ipsec-secgw: get rid of maximum SP limitation 2020-02-05 15:20:51 +01:00
sp6.c examples/ipsec-secgw: get rid of maximum SP limitation 2020-02-05 15:20:51 +01:00