dpdk-cryptodev: scalable session count 03/34603/3
authorDastin Wilski <dastinx.wilski@intel.com>
Fri, 26 Nov 2021 14:57:51 +0000 (14:57 +0000)
committerFan Zhang <roy.fan.zhang@intel.com>
Tue, 30 Nov 2021 11:02:11 +0000 (11:02 +0000)
commit4d232ff5ac70f5a16fa4e324bb0dee073785b0eb
tree707abe2ecf35241347ce17550202030d8b0005c5
parentbb1413bd1e16ab093fbde2a04555ec961ea7c20f
dpdk-cryptodev: scalable session count

Originally cryptodev allocates mempools for seesion and session private
data during its initialization. Moreover the size of these mempools are
fixed resulting in limited session count (up to value specified in
CRYPTODEV_NB_SESSION macro).

This patch allows for session count to scale up by allocating new
mempools as they are needed during session creation.

Type: improvement
Signed-off-by: Dastin Wilski <dastin.wilski@gmail.com>
Change-Id: I6ae240b474d3089d3ff50ca5bc7ff48f149983db
src/plugins/dpdk/cryptodev/cryptodev.c
src/plugins/dpdk/cryptodev/cryptodev.h