From nobody Thu Oct 12 15:02:53 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S5tDG0HxRz4wTl9; Thu, 12 Oct 2023 15:02:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S5tDF6nt4z4ZMT; Thu, 12 Oct 2023 15:02:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697122974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sr6sXkrk0/s4MGeHq+ke4YTZut1/a1o1+st+UDrC9EE=; b=Bvq9YDuPnOqHtThCNMDImjJCxvx9vmR7H8ipoeX+po7Vy92b9G0c8Nj0KdZMSF/kHzBwAj /B3L0WLhzso1m9xJNNRvxdfPaYfBcYq2c8Z7ztaq0PnaKuq13AL1/M6jz+qZQaIaDqplcr ma5VmqFDjrPu+hxQeAvVKcPzEV3btewXF4kJVPx73BpXG5XSdIwZIzf9r0l9QAXPDmtyHK 3QnX6pPV2ImyY1Bmc4CnxnuTD20zhUAQOuCFhI1s/AMOnFZAWdQh6BCsT1UVf2EHMgXVDK IlqVuq3GAfiSf1hTLhHe1Sjq8InddA58rCLMi4nXOKtIP8js2zj6tDq3Fmq2Yw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697122974; a=rsa-sha256; cv=none; b=f3mpXVZyrZKDix+MLMJOHAWPMNZwV+zUPO4De/F28RV4/yzTbiJ31ZpeVZ1cpTZCCrO9Cv r8RWtS2u2mGMa1PnKQ31F538qsN7P4fOveEx1jA9l1K0WKDhL2M9qCBQhDyhBuLz/jwREn 10DZKogYhUJOmVggGC7MuXM3dRBC+8aXRuJYD4fKmFIj5FgexiiFO5r2ZPFTPHmpB5UQZ/ ZvvK9yY5rfLqzj1LqOyrLkPcEPJCY3d2q24D+qWJOYld6VvKV5jTom6SLya8Gqgq6t4mds b8RlICLLuo8b8j5pQYlpin2Fz6t6+1Tls8WVL5dsvAS+i80mCh1eWfhRkII+tA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697122974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sr6sXkrk0/s4MGeHq+ke4YTZut1/a1o1+st+UDrC9EE=; b=fnwm7BYsssGqXiS3vrmk2X6pMQjrfqYos8BxZyK2MMiTaT/XZLvpjp89ZpBwAIGxD+j0iI iLFFvvMAZMIKpEvLwC/Mg2yqwfqlw96FVPiCTxkiexZIOIP3kTi982Wx1YfwS63mIxyUTX UEzhdZRkNFX1yM4czN7eKPFvP2UUfqBxgSxT+XtFD6JBFUosaKusfXZrIlCLfPbGBdDa21 DPQjt+rd0362aI5NE6ogO12gjLzYRbDxUU9A5/DC8qtcDQDC2LbtETLcMFzkN41dit0eza yuy1J7asSCQqyS/yinHgeIUNCuR6naqUPWRZzR7KCwnfq3Nv4lX/TMFOnv1YTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S5tDF5vC5z17vF; Thu, 12 Oct 2023 15:02:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39CF2rU1057205; Thu, 12 Oct 2023 15:02:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CF2rBa057202; Thu, 12 Oct 2023 15:02:53 GMT (envelope-from git) Date: Thu, 12 Oct 2023 15:02:53 GMT Message-Id: <202310121502.39CF2rBa057202@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 83091c864451 - releng/14.0 - sockets: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 83091c8644516091040f32bc266f1204b0e2950d Auto-Submitted: auto-generated The branch releng/14.0 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=83091c8644516091040f32bc266f1204b0e2950d commit 83091c8644516091040f32bc266f1204b0e2950d Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:22 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 14:59:52 +0000 sockets: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable 'kern.ipc.maxsockets' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: kib, imp Approved by: re (gjb) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 978be1ee5d5fef983b4163955e15c4269c0ec76d) (cherry picked from commit e4f97a1ec798d69b8ebf767d0dd2e43fbb1550f6) --- sys/kern/uipc_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 3c7e5c4cb4bb..880dec89245b 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -366,8 +366,8 @@ sysctl_maxsockets(SYSCTL_HANDLER_ARGS) return (error); } SYSCTL_PROC(_kern_ipc, OID_AUTO, maxsockets, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &maxsockets, 0, - sysctl_maxsockets, "IU", + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE, + &maxsockets, 0, sysctl_maxsockets, "IU", "Maximum number of sockets available"); /*