[PATCH 6.1 308/609] net: qrtr: ns: Raise node count limit to 512
Greg Kroah-Hartman <[email protected]>
| Newsgroups | org.kernel.vger.stable,dev.linux.lists.patches |
|---|---|
| Message-ID | <[email protected]> |
6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Youssef Samir <[email protected]> [ Upstream commit ff194cffd586cbd4cc49eccb002c65f2a902a277 ] 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. Also, the backport of commit 27d5e84e810b ("net: qrtr: ns: Limit the total number of nodes") to 5.10, 5.15 and 6.1 dropped the node_count-- hunk in ctrl_cmd_bye(). Add it back. Fixes: 27d5e84e810b ("net: qrtr: ns: Limit the total number of nodes") Cc: [email protected] Signed-off-by: Youssef Samir <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Youssef Samir <[email protected]> Signed-off-by: Sasha Levin <[email protected]> --- net/qrtr/ns.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c index 91e43b0fd5669..5220529a4c62d 100644 --- a/net/qrtr/ns.c +++ b/net/qrtr/ns.c @@ -75,11 +75,11 @@ struct qrtr_node { * requirements. If the requirement changes in the future, these values can be * increased. */ -#define QRTR_NS_MAX_NODES 64 +#define QRTR_NS_MAX_NODES 512 #define QRTR_NS_MAX_SERVERS 256 #define QRTR_NS_MAX_LOOKUPS 64 -static u8 node_count; +static u16 node_count; static struct qrtr_node *node_get(unsigned int node_id) { @@ -412,6 +412,7 @@ static int ctrl_cmd_bye(struct sockaddr_qrtr *from) delete_node: xa_erase(&nodes, from->sq_node); kfree(node); + node_count--; return ret; } -- 2.53.0