diff mbox series

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

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

Commit Message

Petri Savolainen July 11, 2017, 12:31 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 5e5c87ec..f5f84588 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;
 
@@ -519,9 +505,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;
 
@@ -531,9 +514,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;
 
@@ -913,18 +893,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;