diff mbox series

[API-NEXT,v8,2/3] api: ipsec: add tfc_padding_truncate capability

Message ID 1516125627-32748-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v8,1/3] api: ipsec: document TFC padding usage | expand

Commit Message

Github ODP bot Jan. 16, 2018, 6 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Some hardware truncates TFC padding from received packets. Application
can use this capability to determine if it should use
ESP_TFC_PADDING_NOT_SUPPORTED notification when negotiating SA.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 329 (lumag:ipsec-tfc)
 ** https://github.com/Linaro/odp/pull/329
 ** Patch: https://github.com/Linaro/odp/pull/329.patch
 ** Base sha: 0c7741d067d9b96e14e420b53a256a1b93096e16
 ** Merge commit sha: d31d322b1d7ec8d2b9fc3694df5dd0843b52de1c
 **/
 include/odp/api/spec/ipsec.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 738dd65ae..29129a93d 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -232,6 +232,12 @@  typedef struct odp_ipsec_capability_t {
 	 */
 	odp_support_t pipeline_cls;
 
+	/** Implementation will automatically truncate TFC padding in received
+	 *  packets in ESP tunnel mode. Application can use this capability to
+	 *  determine necessity for ESP_TFC_PADDING_NOT_SUPPORTED notification.
+	 */
+	odp_support_t tfc_padding_truncate;
+
 	/**
 	 * Support of retaining outer headers (retain_outer) in inbound inline
 	 * processed packets