diff mbox series

[API-NEXT,v3,4/9] api: ipsec: remove time based SA lifetime

Message ID 20170712135438.22191-4-petri.savolainen@linaro.org
State New
Headers show
Series [API-NEXT,v3,1/9] api: ipsec: add salt parameter | expand

Commit Message

Petri Savolainen July 12, 2017, 1:54 p.m. UTC
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.savolainen@linaro.org>

---
 include/odp/api/spec/ipsec.h | 26 --------------------------
 1 file changed, 26 deletions(-)

-- 
2.13.0
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 0c3826af..f3e5c3ae 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;
 
@@ -518,9 +504,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;
 
@@ -530,9 +513,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;
 
@@ -912,18 +892,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;