[API-NEXT,v5,4/11] api: ipsec: invert the inline_mode flag

Message ID 1494950422-11135-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [API-NEXT,v5,1/11] api: ipsec: add soft limit expiration event
Related show

Commit Message

Github ODP bot May 16, 2017, 4 p.m.
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: f4c213cccc49b4b28557506ad19fba49b872d24f
 ** Merge commit sha: e6ef5a70e5261ee32e5edb33fc7710d103010d95
 **/
 include/odp/api/spec/ipsec.h | 7 +++++--
 1 file changed, 5 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 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;