diff mbox series

[SRU,N,v2,1/1] net: qrtr: ns: Raise node count limit to 512

Message ID 20260828182148.2441617-2-youssef.abdulrahman@oss.qualcomm.com
State New
Headers show
Series qrtr: ns: node limit of 64 breaks QRTR routing on large multi-node deployments | expand

Commit Message

Youssef Samir Aug. 28, 2026, 6:21 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c
index ecf49172307f..9c064d86d136 100644
--- a/net/qrtr/ns.c
+++ b/net/qrtr/ns.c
@@ -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)
 {