crypto/cnxk: update capabilities as per firmware

Updated CPT engine capabilities structure as per microcode.

Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
This commit is contained in:
Tejasree Kondoj 2022-10-19 19:45:03 +05:30 committed by Akhil Goyal
parent 48c551761b
commit cb6bfc96c3
2 changed files with 5 additions and 4 deletions

View File

@ -1523,7 +1523,10 @@ union cpt_eng_caps {
uint64_t __io kasumi : 1;
uint64_t __io des : 1;
uint64_t __io crc : 1;
uint64_t __io reserved_14_63 : 50;
uint64_t __io mmul : 1;
uint64_t __io reserved_15_33 : 19;
uint64_t __io pdcp_chain : 1;
uint64_t __io reserved_35_63 : 29;
};
};

View File

@ -449,9 +449,7 @@ cnxk_sess_fill(struct roc_cpt *roc_cpt, struct rte_crypto_sym_xform *xform,
bool pdcp_chain_supported = false;
bool ciph_then_auth = false;
if (roc_cpt->cpt_revision == ROC_CPT_REVISION_ID_96XX_B0 ||
roc_cpt->cpt_revision == ROC_CPT_REVISION_ID_96XX_C0 ||
roc_cpt->cpt_revision == ROC_CPT_REVISION_ID_98XX)
if (roc_cpt->hw_caps[CPT_ENG_TYPE_SE].pdcp_chain)
pdcp_chain_supported = true;
if (xform == NULL)