]> git.droids-corp.org - dpdk.git/commitdiff
examples/ipsec-secgw: clear soft expiry configuration
authorAnoob Joseph <anoobj@marvell.com>
Tue, 28 Sep 2021 10:59:59 +0000 (16:29 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 28 Sep 2021 12:16:37 +0000 (14:16 +0200)
Soft expiry is not a mandatory IPsec feature. It is verified separately
with IPsec unit tests. So configuration of the same is not required.
Also, soft expiry tracking can cause perf degradation with some PMDs.
Since a separate UT is available and the same setting in ipsec-secgw is
not verifying the functionality, remove the same by clearing life
configuration.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
examples/ipsec-secgw/ipsec.c
examples/ipsec-secgw/ipsec.h

index 48682943d776f8f21e9706825253a2c57aff48b0..68171396632f335df31e40225e6c251679932a53 100644 (file)
@@ -49,7 +49,6 @@ set_ipsec_conf(struct ipsec_sa *sa, struct rte_security_ipsec_xform *ipsec)
                }
                /* TODO support for Transport */
        }
-       ipsec->life.packets_soft_limit = IPSEC_OFFLOAD_PKTS_SOFTLIMIT;
        ipsec->replay_win_sz = app_sa_prm.window_size;
        ipsec->options.esn = app_sa_prm.enable_esn;
        ipsec->options.udp_encap = sa->udp_encap;
index 90c81c1267d2f4a145484986a06cc1ccf4496e7d..8405c481714fee105a120d6b83a60758731063ee 100644 (file)
@@ -23,8 +23,6 @@
 
 #define MAX_DIGEST_SIZE 32 /* Bytes -- 256 bits */
 
-#define IPSEC_OFFLOAD_PKTS_SOFTLIMIT 0xffffff00
-
 #define IV_OFFSET              (sizeof(struct rte_crypto_op) + \
                                sizeof(struct rte_crypto_sym_op))