cryptodev: verify session mempool element size
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Mon, 8 Jun 2020 13:15:02 +0000 (15:15 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Tue, 7 Jul 2020 22:15:35 +0000 (00:15 +0200)
commit53bf0ffd51c0b378246aac74308cc0ceaf075f83
tree62e7d56bf8d82d7c8448960993513a8490883dd2
parent0ad83afdf3352e5e61e8c137131524ee6b2506ce
cryptodev: verify session mempool element size

This patch adds the verification of the element size of the
mempool provided for the session creation. Returns the error
if the element size is too small to hold the session object.

Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
lib/librte_cryptodev/rte_cryptodev.c