[qca-nss-drv] Reduce NSS FW IPv4/6 conn default to 1K
The host default remains at 4K so the connection table in the FW
will be 1K at boot and updated by host to 4K.
Change-Id: I6565e1a2d44d3ea7c093ce5edc895aa76c8095d5
Signed-off-by: Stephen Wang <wstephen@codeaurora.org>
diff --git a/nss_ipv6.c b/nss_ipv6.c
index dfbb908..f9470f9 100644
--- a/nss_ipv6.c
+++ b/nss_ipv6.c
@@ -439,7 +439,7 @@
if (nim->cm.response != NSS_CMN_RESPONSE_ACK) {
nss_warning("%p: IPv6 connection configuration failed with error: %d\n", nss_ctx, nim->cm.error);
- nss_core_update_max_ipv6_conn(NSS_DEFAULT_NUM_CONN);
+ nss_core_update_max_ipv6_conn(NSS_FW_DEFAULT_NUM_CONN);
nss_ipv6_free_conn_tables();
return;
}
@@ -535,7 +535,7 @@
if (nim->cm.response != NSS_CMN_RESPONSE_ACK) {
nss_warning("%p: IPv6 fetch connection info failed with error: %d\n", nss_ctx, nim->cm.error);
- nss_core_update_max_ipv6_conn(NSS_DEFAULT_NUM_CONN);
+ nss_core_update_max_ipv6_conn(NSS_FW_DEFAULT_NUM_CONN);
return;
}
@@ -570,7 +570,7 @@
/*
* By default, NSS FW is configured with default number of connections.
*/
- if (ipv6_num_conn == NSS_DEFAULT_NUM_CONN) {
+ if (ipv6_num_conn == NSS_FW_DEFAULT_NUM_CONN) {
nss_info("%p: Default number of connections (%d) already configured\n", nss_ctx, ipv6_num_conn);
return 0;
}