aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_config_internal.h
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2021-02-22 17:06:42 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2021-03-11 09:25:00 +0200
commitf0bc26c5d39f32e0dc3205100017a3eaf252e994 (patch)
tree1a5f0dfa27d07172f0f60310ba2fe550531db0e7 /platform/linux-generic/include/odp_config_internal.h
parenta8935bba6ef8de13a70eeb755905a44106673689 (diff)
linux-gen: ipsec: increase the maximum number of SAs
Make the maximum number of IPsec SAs 4000 or the maximum number of crypto sessions, whichever is lower. Move the definition of the compile time upper limit to odp_config_internal.h. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r--platform/linux-generic/include/odp_config_internal.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h
index 35f1c9142..1e8b390dd 100644
--- a/platform/linux-generic/include/odp_config_internal.h
+++ b/platform/linux-generic/include/odp_config_internal.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2016-2018, Linaro Limited
- * Copyright (c) 2019-2020, Nokia
+ * Copyright (c) 2019-2021, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@@ -147,6 +147,13 @@ extern "C" {
/* Enable pool statistics collection */
#define CONFIG_POOL_STATISTICS 1
+/*
+ * Maximum number of IPsec SAs. The actual maximum number can be further
+ * limited by the number of sessions supported by the crypto subsystem and
+ * is reported by odp_ipsec_capability().
+ */
+#define CONFIG_IPSEC_MAX_NUM_SA 4000
+
#ifdef __cplusplus
}
#endif