diff mbox series

[API-NEXT,v5,5/11] api: ipsec: move soft limits expiration to flags, rather than errors

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

Commit Message

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


Soft limit expiration isn't an error per se. It does not mean, that we
received invalid or unprocessed packet. They look more like flags,
noting that soft limit on this SA was expired.

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 | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index ceda881..0ae3233 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -880,15 +880,6 @@  typedef union odp_ipsec_op_status_t {
 				 */
 				uint32_t mtu              : 1;
 
-				/** Soft lifetime expired: seconds */
-				uint32_t soft_exp_sec     : 1;
-
-				/** Soft lifetime expired: bytes */
-				uint32_t soft_exp_bytes   : 1;
-
-				/** Soft lifetime expired: packets */
-				uint32_t soft_exp_packets : 1;
-
 				/** Hard lifetime expired: seconds */
 				uint32_t hard_exp_sec     : 1;
 
@@ -919,6 +910,15 @@  typedef union odp_ipsec_op_status_t {
 				 */
 				uint32_t non_inline_mode      : 1;
 
+				/** Soft lifetime expired: seconds */
+				uint32_t soft_exp_sec     : 1;
+
+				/** Soft lifetime expired: bytes */
+				uint32_t soft_exp_bytes   : 1;
+
+				/** Soft lifetime expired: packets */
+				uint32_t soft_exp_packets : 1;
+
 			} flag;
 
 			/** All flag bits */