diff mbox series

[API-NEXT,2/2] api: ipsec: disable event is the last event

Message ID 20170609105143.11350-3-petri.savolainen@linaro.org
State Superseded
Headers show
Series IPSEC packet event | expand

Commit Message

Petri Savolainen June 9, 2017, 10:51 a.m. UTC
Disable event is guaranteed to be the last event for the SA,
so that application can use it for SA destroy synchronization.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 include/odp/api/spec/ipsec.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.13.0
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 0da2b42c..2482bf09 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -817,7 +817,10 @@  odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param);
  *
  * When in synchronous operation mode, the call will return when it's possible
  * to destroy the SA. In asynchronous mode, the same is indicated by an
- * ODP_EVENT_IPSEC_STATUS event sent to the queue specified for the SA.
+ * ODP_EVENT_IPSEC_STATUS event sent to the queue specified for the SA. The
+ * status event is guaranteed to be the last event for the SA, i.e. all
+ * in-progress operations have completed and resulting events (including status
+ * events) have been enqueued before it.
  *
  * @param sa      IPSEC SA to be disabled
  *