diff mbox series

[API-NEXT,v2,5/5] api: ipsec: invert the inline_mode flag

Message ID 1494288006-2185-5-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v2,1/5] api: ipsec: move soft limits expiration to flags, rather than errors | expand

Commit Message

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


For INLINE-destined SAs it is typical to have packets processed through
INLINE API. So, let's invert the inline_mode flag to mean that the
packet was processed through ASYNC API.

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

---
/** Email created from pull request 22 (lumag:ipsec-limits)
 ** https://github.com/Linaro/odp/pull/22
 ** Patch: https://github.com/Linaro/odp/pull/22.patch
 ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85
 ** Merge commit sha: 85b927011c941f816b853da7284c0c3a939c5efb
 **/
 include/odp/api/spec/ipsec.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 3a33845..c16fcf1 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -901,8 +901,11 @@  typedef union odp_ipsec_op_status_t {
 		union {
 			/** Status flags */
 			struct {
-				/** Packet was processed in inline mode */
-				uint32_t inline_mode      : 1;
+				/**
+				 * Packet was processed in ASYNC mode through
+				 * the SA configured for INLINE mode.
+				 */
+				uint32_t non_inline_mode      : 1;
 
 			} flag;