diff mbox series

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

Message ID 1494288006-2185-6-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>


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 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 | 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 c16fcf1..34775aa 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -868,15 +868,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;
 
@@ -907,6 +898,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 */