crypto/dpaax_sec: fix inline query for descriptors
authorAkhil Goyal <akhil.goyal@nxp.com>
Thu, 4 Jun 2020 20:04:10 +0000 (01:34 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 8 Jul 2020 16:16:17 +0000 (18:16 +0200)
commit453b9593a3cfe62ce1f64c65382090ec8adb3ec0
treee0c6cd24b462fd51d998d1bdec5c53627f50baaf
parent5a61bdb9444763a7f6bcb2f6eb1229b0a601d20b
crypto/dpaax_sec: fix inline query for descriptors

The maximum length of job descriptor which is formed
is 13 words and hence rta_inline_query should take
care of the max descriptor(shared + job) lengths and
thus find out of the key can be referenced or immediate.

Fixes: 05b12700cd4c ("crypto/dpaa_sec: support null algos for protocol offload")
Fixes: 13273250eec5 ("crypto/dpaa2_sec: support AES-GCM and CTR")
Cc: stable@dpdk.org
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/common/dpaax/caamflib/desc.h
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa_sec/dpaa_sec.c