diff mbox series

[API-NEXT,v5,1/11] api: ipsec: add soft limit expiration event

Message ID 1494950422-11135-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v5,1/11] api: ipsec: add soft limit expiration event | expand

Commit Message

Github ODP bot May 16, 2017, 4 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


If outbound packet was processed in inline mode, soft limit expiration
event is not reported, as packet goes to the interface. Instead report
this as an ODP_IPSEC_STATUS_SA_SOFT_EXPIRED.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 28 (lumag:ipsec)
 ** https://github.com/Linaro/odp/pull/28
 ** Patch: https://github.com/Linaro/odp/pull/28.patch
 ** Base sha: f4c213cccc49b4b28557506ad19fba49b872d24f
 ** Merge commit sha: e6ef5a70e5261ee32e5edb33fc7710d103010d95
 **/
 include/odp/api/spec/ipsec.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 9a7404c..03742c6 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -1092,7 +1092,14 @@  typedef struct odp_ipsec_op_result_t {
  */
 typedef enum odp_ipsec_status_id_t {
 	/** Response to SA disable command */
-	ODP_IPSEC_STATUS_SA_DISABLE = 0
+	ODP_IPSEC_STATUS_SA_DISABLE = 0,
+
+	/**
+	 * Soft limit expired on this SA
+	 *
+	 * This event is sent only if SA was configured in OUT INLINE mode.
+	 */
+	ODP_IPSEC_STATUS_SA_SOFT_EXPIRED
 
 } odp_ipsec_status_id_t;