diff mbox series

[API-NEXT,v4,4/10] api: ipsec: invert the inline_mode flag

Message ID 1494543609-26126-5-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v4,1/10] api: ipsec: add soft limit expiration event | expand

Commit Message

Github ODP bot May 11, 2017, 11 p.m. 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 28 (lumag:ipsec)
 ** https://github.com/Linaro/odp/pull/28
 ** Patch: https://github.com/Linaro/odp/pull/28.patch
 ** Base sha: 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030
 ** Merge commit sha: b81277da57f0fe188a9a4e88872bba7ec92283ca
 **/
 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 103fc39..ceda881 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -913,8 +913,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;