]> git.droids-corp.org - dpdk.git/blobdiff - drivers/crypto/caam_jr/caam_jr.c
common/cnxk: convert warning to debug print
[dpdk.git] / drivers / crypto / caam_jr / caam_jr.c
index 5909eca6e42bb82166953cc5d33cc9abd937bbe0..8e9cfe73d8fcbfddd719ebe454003fb9c32eaf2c 100644 (file)
@@ -1756,6 +1756,12 @@ caam_jr_set_ipsec_session(__rte_unused struct rte_cryptodev *dev,
 
        PMD_INIT_FUNC_TRACE();
 
+       if (ipsec_xform->life.bytes_hard_limit != 0 ||
+           ipsec_xform->life.bytes_soft_limit != 0 ||
+           ipsec_xform->life.packets_hard_limit != 0 ||
+           ipsec_xform->life.packets_soft_limit != 0)
+               return -ENOTSUP;
+
        if (ipsec_xform->direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS) {
                cipher_xform = &conf->crypto_xform->cipher;
                auth_xform = &conf->crypto_xform->next->auth;