@@ -837,8 +837,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. The
- * status event is guaranteed to be the last event for the SA, i.e. all
+ * sa_disabled bit in odp_ipsec_warn_t. Warning can be delivered either by an
+ * ODP_EVENT_IPSEC_STATUS event sent to the queue specified for the SA or by
+ * a packet having this bit set in corresponding odp_ipsec_result_t instance.
+ * This warning 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.
*
@@ -932,6 +934,9 @@ typedef struct odp_ipsec_warn_t {
/** Soft lifetime expired: packets */
uint32_t soft_exp_packets : 1;
+
+ /** SA was disabled */
+ uint32_t sa_disabled : 1,
};
/** All warnings bits */
@@ -1127,15 +1132,6 @@ typedef struct odp_ipsec_packet_result_t {
* IPSEC status ID
*/
typedef enum odp_ipsec_status_id_t {
- /** Response to SA disable command
- *
- * Following status event (odp_ipsec_status_t) fields have valid
- * content, other fields must be ignored:
- * - sa: The SA that was requested to be disabled
- * - result: Operation result
- */
- ODP_IPSEC_STATUS_SA_DISABLE = 0,
-
/** Warning from inline IPSEC processing
*
* Following status event (odp_ipsec_status_t) fields have valid
@@ -1146,7 +1142,7 @@ typedef enum odp_ipsec_status_id_t {
* This status event is generated only for outbound SAs in
* ODP_IPSEC_OP_MODE_INLINE mode.
*/
- ODP_IPSEC_STATUS_WARN
+ ODP_IPSEC_STATUS_WARN = 0,
} odp_ipsec_status_id_t;