LX216x suppots ESN. Also enable to correctly print the SEC era. Signed-off-by: Hemant Agrawal <hemant.agra...@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(-)
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 16e7facdb4..7fd15de1a5 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -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); diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h index ee904829ed..d3e2df72b0 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h @@ -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 }, -- 2.17.1