crypto/dpaa_sec: allocate context dynamically for SG
authorHemant Agrawal <hemant.agrawal@nxp.com>
Mon, 30 Sep 2019 14:41:02 +0000 (20:11 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commitf7a5752e709c2e5d2f9fb46af2f5957fb74a8ef4
treebe8c013afaf89907fae6808b51c697cdce3ea08c
parent62a31622390617e2f1cc7b2ef53eed8f2b3fcce5
crypto/dpaa_sec: allocate context dynamically for SG

This patch allocate/clean the SEC context dynamically
based on the number of SG entries in the buffer.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c
drivers/crypto/dpaa_sec/dpaa_sec.h