diff mbox series

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

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

Commit Message

Github ODP bot May 11, 2017, 10 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: 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030
 ** Merge commit sha: 1589f97414ab144b3cb1e65667d311783fdba670
 **/
 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 */