From ca635a5899c81055133ed0ca0556316b4ab64525 Mon Sep 17 00:00:00 2001 From: Akhil Goyal Date: Thu, 3 Sep 2020 22:37:34 +0530 Subject: [PATCH] crypto/dpaa2_sec: change descriptor sharing for ERA10 In case of LX2160 or SEC ERA 10, share wait has performance optimizations wrt to ok-to-share signal which allows multiple DECOs to work together even in case of single queue and single SA. Hence updated the descriptor sharing only in case of ERA10. Signed-off-by: Akhil Goyal Acked-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 6b1c41525f..c11d024208 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -2962,7 +2962,8 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, } bufsize = cnstr_shdsc_ipsec_new_encap(priv->flc_desc[0].desc, - 1, 0, SHR_SERIAL, &encap_pdb, + 1, 0, (rta_sec_era >= RTA_SEC_ERA_10) ? + SHR_WAIT : SHR_SERIAL, &encap_pdb, hdr, &cipherdata, &authdata); } else if (ipsec_xform->direction == RTE_SECURITY_IPSEC_SA_DIR_INGRESS) { @@ -3027,7 +3028,8 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, } session->dir = DIR_DEC; bufsize = cnstr_shdsc_ipsec_new_decap(priv->flc_desc[0].desc, - 1, 0, SHR_SERIAL, + 1, 0, (rta_sec_era >= RTA_SEC_ERA_10) ? + SHR_WAIT : SHR_SERIAL, &decap_pdb, &cipherdata, &authdata); } else goto out; -- 2.20.1