Thread (184 messages) 184 messages, 7 authors, 2021-10-27

Re: [dpdk-dev] [PATCH v6 03/10] security: add ESN field to ipsec_xform

From: Ananyev, Konstantin <hidden>
Date: 2021-09-23 12:47:03

quoted hunk ↗ jump to hunk
Update ipsec_xform definition to include ESN field.
This allows the application to control the ESN starting value.

Signed-off-by: Declan Doherty <redacted>
Signed-off-by: Radu Nicolau <redacted>
Signed-off-by: Abhijit Sinha <redacted>
Signed-off-by: Daniel Martin Buckley <redacted>
Acked-by: Fan Zhang <redacted>
Acked-by: Anoob Joseph <redacted>
---
 lib/security/rte_security.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h
index 84ba1b08f8..1bd09e3cc2 100644
--- a/lib/security/rte_security.h
+++ b/lib/security/rte_security.h
@@ -240,6 +240,14 @@ struct rte_security_ipsec_xform {
 	 */
 	uint32_t mss;
 	/**< IPsec payload Maximum Segment Size */
+	union {
+		uint64_t value;
+		struct {
+			uint32_t low;
+			uint32_t hi;
Do we really need low/hi here?
As I remember ESN is 64bit value, no?
+		};
+	} esn;
+	/**< Extended Sequence Number */
 };

 /**
--
2.25.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help