[API-NEXT,v1,2/2] api: ipsec: split INLINE capability into in and out pair

Message ID 1494450005-17547-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [API-NEXT,v1,1/2] api: ipsec: add AH capability
Related show

Commit Message

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


Unlike SYNC/ASYNC operation modes, it well might be that the
implementation provides only INLINE support only for inbound or outbound
packets. Let's split the capability into two new caps.

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

---
/** Email created from pull request 26 (lumag:ipsec-ah-cap)
 ** https://github.com/Linaro/odp/pull/26
 ** Patch: https://github.com/Linaro/odp/pull/26.patch
 ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85
 ** Merge commit sha: 6eb5ba103d81883b2b55945c58214b903bfac64d
 **/
 include/odp/api/spec/ipsec.h | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 150e691..daef2f2 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -241,8 +241,17 @@  typedef struct odp_ipsec_capability_t {
 	 */
 	odp_support_t op_mode_async;
 
-	/** Inline IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) support */
-	odp_support_t op_mode_inline;
+	/**
+	 * Inline inbound IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE)
+	 * support
+	 */
+	odp_support_t op_mode_inline_in;
+
+	/**
+	 * Inline outgoing IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE)
+	 * support
+	 */
+	odp_support_t op_mode_inline_out;
 
 	/** IP Authenticated Header (ODP_IPSEC_AH) support */
 	odp_support_t proto_ah;