diff mbox series

[3/3] api: ipsec: add default queue for outbound events

Message ID 20170410132811.19300-3-dmitry.ereminsolenikov@linaro.org
State Superseded
Headers show
Series [1/3] api: ipsec: make num_pkt/out/sa/opt unsigned | expand

Commit Message

Dmitry Eremin-Solenikov April 10, 2017, 1:28 p.m. UTC
If SA lookup fails for outbound IPsec packet in async mode, there is no
way to report it back to application except using default queue (which
does not exist at this moment).

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

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

-- 
2.11.0
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 33a84eef..4e3ec16f 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -188,6 +188,13 @@  typedef struct odp_ipsec_inbound_config_t {
  * Configuration options for IPSEC outbound processing
  */
 typedef struct odp_ipsec_outbound_config_t {
+	/** Default destination queue for IPSEC events
+	 *
+	 *  When outbound SA lookup fails in the asynchronous mode,
+	 *  resulting IPSEC events are enqueued into this queue.
+	 */
+	odp_queue_t default_queue;
+
 	/** Flags to control L3/L4 checksum insertion as part of outbound
 	 *  packet processing. Packet must have set with valid L3/L4 offsets.
 	 *  Checksum configuration is ignored for packets that checksum cannot