[qca-nss-sfe] Max connection limit
Change-Id: I43a28d6f4da8bbe1f8fee97dee01701a688c5363
Signed-off-by: Ratheesh Kannoth <quic_rkannoth@quicinc.com>
diff --git a/sfe.h b/sfe.h
index 897bfaa..4aaacdf 100644
--- a/sfe.h
+++ b/sfe.h
@@ -18,6 +18,20 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef __SFE_H
+#define __SFE_H
+
+/*
+ * Maximum number of accelerated IPv4 or IPv6 connections
+ */
+#if defined(SFE_MEM_PROFILE_LOW)
+#define SFE_MAX_CONNECTION_NUM 512
+#elif defined(SFE_MEM_PROFILE_MEDIUM)
+#define SFE_MAX_CONNECTION_NUM 2048
+#else
+#define SFE_MAX_CONNECTION_NUM 4096
+#endif
+
/*
* IPv6 address structure
*/
@@ -201,3 +215,5 @@
int sfe_init_if(void);
void sfe_exit_if(void);
+
+#endif /* __SFE_H */