[qca-nss-sfe] Max connection limit

Change-Id: I43a28d6f4da8bbe1f8fee97dee01701a688c5363
Signed-off-by: Ratheesh Kannoth <quic_rkannoth@quicinc.com>
diff --git a/sfe.c b/sfe.c
index 859794f..8c6b51a 100644
--- a/sfe.c
+++ b/sfe.c
@@ -30,8 +30,10 @@
 #include "sfe_api.h"
 #include "sfe.h"
 
+extern int max_ipv4_conn;
+extern int max_ipv6_conn;
+
 #define SFE_MESSAGE_VERSION 0x1
-#define SFE_MAX_CONNECTION_NUM 65535
 #define sfe_ipv6_addr_copy(src, dest) memcpy((void *)(dest), (void *)(src), 16)
 #define sfe_ipv4_stopped(CTX) (rcu_dereference((CTX)->ipv4_stats_sync_cb) == NULL)
 #define sfe_ipv6_stopped(CTX) (rcu_dereference((CTX)->ipv6_stats_sync_cb) == NULL)
@@ -608,7 +610,7 @@
  */
 int sfe_ipv4_max_conn_count(void)
 {
-	return SFE_MAX_CONNECTION_NUM;
+	return max_ipv4_conn;
 }
 EXPORT_SYMBOL(sfe_ipv4_max_conn_count);
 
@@ -932,7 +934,7 @@
  */
 int sfe_ipv6_max_conn_count(void)
 {
-	return SFE_MAX_CONNECTION_NUM;
+	return max_ipv6_conn;
 }
 EXPORT_SYMBOL(sfe_ipv6_max_conn_count);