aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/ipsec.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2017-10-15 08:02:52 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-12-27 21:41:45 +0300
commitcbb6ff4116e9d47de0e1dee0b34d9af3e182efff (patch)
tree378f89afa45a7494e17528ae5f7485871fb24a58 /include/odp/api/spec/ipsec.h
parent25447a8b0fb509a1b853fc13aad29ca83de3a272 (diff)
api: ipsec: return maximum antireplay window size via capability
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> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/spec/ipsec.h')
-rw-r--r--include/odp/api/spec/ipsec.h3
1 files changed, 3 insertions, 0 deletions
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;