cryptodev: fix initialization on multi-process
authorJulien Meunier <julien.meunier@nokia.com>
Wed, 7 Aug 2019 08:39:23 +0000 (11:39 +0300)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commit1a60db7f354a52add0c1ea66e55ba7beba1a9716
tree2234e7296cbaa3c97e3027a4e29808d1c9938c4b
parente2e60edbdbfcf991db14058bb1aa031da0705b7c
cryptodev: fix initialization on multi-process

Primary process is responsible to initialize the data struct of each
crypto devices.

Secondary process should not override this data during the
initialization.

Fixes: d11b0f30df88 ("cryptodev: introduce API and framework for crypto devices")
Cc: stable@dpdk.org
Signed-off-by: Julien Meunier <julien.meunier@nokia.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
lib/librte_cryptodev/rte_cryptodev.c