diff mbox series

[API-NEXT,v2,1/1] api: ipsec: return maximum antireplay window size via capability

Message ID 1508162408-10034-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v2,1/1] api: ipsec: return maximum antireplay window size via capability | expand

Commit Message

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


Report maximum possible antireplay window size to application. Othersise
it can try requesting arbitrary window sizes not supported by
hardware/implementation.

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

---
/** Email created from pull request 230 (lumag:ipsec-rws-cap)
 ** https://github.com/Linaro/odp/pull/230
 ** Patch: https://github.com/Linaro/odp/pull/230.patch
 ** Base sha: afeda4d14bb6f449cb269680cdbd56b26726eedf
 ** Merge commit sha: aa5389cca5b69f6ad8a339b2ee3bd480c152010f
 **/
 include/odp/api/spec/ipsec.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 3bd80b266..ddcdf75bb 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -282,6 +282,9 @@  typedef struct odp_ipsec_capability_t {
 	 *  be used for many SAs. */
 	uint32_t max_queues;
 
+	/** Maximum anti-replay window size. */
+	uint32_t max_antireplay_ws;
+
 	/** Supported cipher algorithms */
 	odp_crypto_cipher_algos_t ciphers;