Application may track time based SA lifetime expiration
efficiently and in many ways: e.g. ODP timers may be used,
wall clock time may be polled, control plane may send
notifications, etc.

Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org>
---
 include/odp/api/spec/ipsec.h | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 59776b92..9012ca59 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -272,20 +272,6 @@ typedef struct odp_ipsec_capability_t {
         *  be used for many SAs. */
        uint32_t max_queues;
 
-       /** Soft expiry limit in seconds support
-        *
-        *  0: Limit is not supported
-        *  1: Limit is supported
-        */
-       uint8_t soft_limit_sec;
-
-       /** Hard expiry limit in seconds support
-        *
-        *  0: Limit is not supported
-        *  1: Limit is supported
-        */
-       uint8_t hard_limit_sec;
-
        /** Supported cipher algorithms */
        odp_crypto_cipher_algos_t ciphers;
 
@@ -527,9 +513,6 @@ typedef struct odp_ipsec_sa_opt_t {
 typedef struct odp_ipsec_lifetime_t {
        /** Soft expiry limits for the session */
        struct {
-               /** Limit in seconds from the SA creation */
-               uint64_t sec;
-
                /** Limit in bytes */
                uint64_t bytes;
 
@@ -539,9 +522,6 @@ typedef struct odp_ipsec_lifetime_t {
 
        /** Hard expiry limits for the session */
        struct {
-               /** Limit in seconds from the SA creation */
-               uint64_t sec;
-
                /** Limit in bytes */
                uint64_t bytes;
 
@@ -921,18 +901,12 @@ typedef struct odp_ipsec_op_status_t {
                        /** Packet does not fit into the given MTU size */
                        uint32_t mtu              : 1;
 
-                       /** Soft lifetime expired: seconds */
-                       uint32_t soft_exp_sec     : 1;
-
                        /** Soft lifetime expired: bytes */
                        uint32_t soft_exp_bytes   : 1;
 
                        /** Soft lifetime expired: packets */
                        uint32_t soft_exp_packets : 1;
 
-                       /** Hard lifetime expired: seconds */
-                       uint32_t hard_exp_sec     : 1;
-
                        /** Hard lifetime expired: bytes */
                        uint32_t hard_exp_bytes   : 1;
 
-- 
2.13.0

Reply via email to