crypto/dpaa_sec: add portal presence check
authorAshish Jain <ashish.jain@nxp.com>
Mon, 2 Apr 2018 15:33:18 +0000 (21:03 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Apr 2018 17:20:09 +0000 (18:20 +0100)
commit5b0f1bd36a83ef63a52bf14913566b9edb2067cc
tree9c27497aa48c4997330c78a6ccec064cd37dd4f6
parent69cb2eebd17af9e902221619cfd37dc4c280d2ee
crypto/dpaa_sec: add portal presence check

Adding a check to do portal configuration if not already
configured before packet enqueue. This check is only done
during dpaa_sec_attach_sess_q for initial packets,
so this change wont affect the data path and hence performance.

Fixes: e79416d10fa3 ("crypto/dpaa_sec: support multiple sessions per queue pair")
Cc: stable@dpdk.org
Signed-off-by: Ashish Jain <ashish.jain@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c