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

Message ID 20170616104940.20166-4-petri.savolainen@linaro.org
State New
Headers show
Series
  • IPSEC packet event
Related show

Commit Message

Petri Savolainen June 16, 2017, 10:49 a.m.
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

Patch hide | download patch | download mbox

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 372ef462..e602e4b8 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -818,7 +818,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
  *