LX216x suppots ESN.
Also enable to correctly print the SEC era.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +-
drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
@@ -4386,7 +4386,7 @@ cryptodev_dpaa2_sec_probe(struct rte_dpaa2_driver *dpaa2_drv __rte_unused,
else
rta_set_sec_era(RTA_SEC_ERA_8);
- DPAA2_SEC_INFO("2-SEC ERA is %d", rta_get_sec_era());
+ DPAA2_SEC_INFO("2-SEC ERA is %d", USER_SEC_ERA(rta_get_sec_era()));
/* Invoke PMD device initialization function */
retval = dpaa2_sec_dev_init(cryptodev);
@@ -932,6 +932,7 @@ static const struct rte_security_capability dpaa2_sec_security_cap[] = {
.options = {
.copy_df = 1,
.copy_dscp = 1,
+ .esn = 1,
},
.replay_win_sz_max = 1024
},
@@ -947,6 +948,7 @@ static const struct rte_security_capability dpaa2_sec_security_cap[] = {
.options = {
.copy_df = 1,
.copy_dscp = 1,
+ .esn = 1,
},
.replay_win_sz_max = 1024
},