@@ -72,22 +72,16 @@ struct qrtr_node {
u32 server_count;
};
-/* Max server limit is chosen based on the current platform requirements. If the
- * requirement changes in the future, this value can be increased.
+/*
+ * Max nodes, server, lookup limits are chosen based on the current platform
+ * requirements. If the requirement changes in the future, these values can be
+ * increased.
*/
+#define QRTR_NS_MAX_NODES 512
#define QRTR_NS_MAX_SERVERS 256
-
-/* Max lookup limit is chosen based on the current platform requirements. If the
- * requirement changes in the future, this value can be increased.
- */
#define QRTR_NS_MAX_LOOKUPS 64
-/* Max nodes limit is chosen based on the current platform requirements.
- * If the requirement changes in the future, this value can be increased.
- */
-#define QRTR_NS_MAX_NODES 64
-
-static u8 node_count;
+static u16 node_count;
static struct qrtr_node *node_get(unsigned int node_id)
{
BugLink: https://bugs.launchpad.net/bugs/2165140 The current node limit of 64 breaks the functionality for a number of AI200 deployments that have up to 384 nodes. Raise the limit to 512. Fixes: 27d5e84e810b ("net: qrtr: ns: Limit the total number of nodes") Cc: stable@vger.kernel.org Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com> Link: https://patch.msgid.link/20260713145901.212396-1-youssef.abdulrahman@oss.qualcomm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> (backported from commit ff194cffd586cbd4cc49eccb002c65f2a902a277) [youssef.abdulrahman: Matched the order of definitions and the preceding comment to mainline] Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com> --- net/qrtr/ns.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-)