From nobody Thu Oct 12 04:21:01 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 4S5bzf2kRjz4xBnm; Thu, 12 Oct 2023 04:21:02 +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 4S5bzf1TLkz4Xyt; Thu, 12 Oct 2023 04:21:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697084462; 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=+kUYPfx7R6TvviUnk+1ZfxZiiTEr4bgqNKOUA/iI0PY=; b=Ji8S7msedmSdi6mcJE1a/aNQYQkBb6acucueGd17uc46zlEaLaQljdEKeCzpeoII/7/HO9 6MP2y/BmbdygCsICLFxhKLSFF1OvFT6yZ2mnL5LTLH1xZeOZjJsDdDYm/sknJ6Hwfe8ee3 RsbuK26G8ddsTJcwNtgHB3bIEC7omtrdNj2frf8X7vXHa9CcUzwEbqZdbne++U0pduqKUc gEdKhLHJ56U2QWtuc+GR8PxRsIKPWSuYVOkbXDih6eb31h1jCAUpmjG5BIMhekt/HtNHnq 3rpczcyEt452Ensb31X4hhXgxKRyuH5Z0dLocm+C0+ELJw9Nm7yoPNNQXGINZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697084462; a=rsa-sha256; cv=none; b=jO4JCr310hAA2qUxp54wNM+uH7DFvBwEFtsGBVv9rL4+gknmTZGFM9hiQk/aWdYAoziybJ o1AE34yXcsLPVtvuD473pvdLdr/+EPEJLfyzEOVMa7traf3o/ByzN9ZIRmjFOId43engMH qaEUT2aBOhBWfwHRrgfW//tqvZT3OjCVqoEKxqmzczDFI/AsO+uBJV+AWpLzITStt2gDTs KP8JRuH2BhkMKzBaIguzczDuLdODi33NN5ogQTbEy72F9IFD8FNxjiv4QJIo+SxW2AFS0M a040fIwLAH7z/Egv+vago0YiOgnflQjRH9kmVkqKYATECUTPHeKnuRRXsWYE+w== 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=1697084462; 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=+kUYPfx7R6TvviUnk+1ZfxZiiTEr4bgqNKOUA/iI0PY=; b=AuaM03QFx/kQr54R/RwJ9NtI9M5t98mGbmXcPqc1gMLgCryadNIG+yQ7Tb9nLPaPjLleLJ YZPlSivi7Inl3wYzFq/gTRK9WHs/is33y0earSK9s/XdBvJNgS1ujbfaMk/Z0EKgtFtxjX s/x4V0Y7wlcFWiWydAoFs2/NOapcTXkQWY9cQKYIXEAA57Dj5adTSXk9KSavCOdXGL8gWe HUfv3KCnpOdPTHEzvEBrtM5r1TTxCtVoTNXt722kypbLfhUL68U3PFw7Xm3NyxN5fWG7h6 WuWG0s/GARMoxHvzmflNsLiEIPxGH8NLcbSV5J1ltFc5VUjF1+mXpFPgZUvizw== 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 4S5bzf0bYSzpn8; Thu, 12 Oct 2023 04:21:02 +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 39C4L1nO086599; Thu, 12 Oct 2023 04:21:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C4L1db086596; Thu, 12 Oct 2023 04:21:01 GMT (envelope-from git) Date: Thu, 12 Oct 2023 04:21:01 GMT Message-Id: <202310120421.39C4L1db086596@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: 6dbde8424561 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6dbde842456151de0cec331b99e7330a80ae949c Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=6dbde842456151de0cec331b99e7330a80ae949c commit 6dbde842456151de0cec331b99e7330a80ae949c Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:22 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 04:19:37 +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 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 e5997e439964..bcf0ad2ade2c 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -373,8 +373,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"); /*