From nobody Mon Oct 09 10:32:00 2023 X-Original-To: dev-commits-src-main@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 4S3wM451p5z4xKpx; Mon, 9 Oct 2023 10:32:00 +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 4S3wM44FSYz4DRR; Mon, 9 Oct 2023 10:32:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696847520; 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=nhBaMlFhOk5qCO5x8pwNGMk2kpOyxJ75IS0YNIOneeQ=; b=kOsEBNWu10gxzLH+gRTnY9b94FB0fb+WIF8cAjT0rarEa+4noZA+fDlWqq7JdcUB8hmMxy pCTS4nnIjuRRRREIGcPqYybUEBihvozVyoDDWnIZUvbnMiUhSn4X9LwmY4nRc0U5qbKTmV T/qUAeySnZ7dcwaxVhxaMnH1xyLDhF9NThv5vLFh/fEWsB4O560gh2HJuxYpE3RPn1hhSm 2k/aZoLTRBbevI1XfNaJo46pm/fBEwS0ldf1uYvqzL8/7RZGFEyWDgVmo+pEZqZHHAObsm boruClMWzioV8RjmQPZ+nloLUKxEB4qH8mScy7USTZ4Hx1H+0RX8JengpmiweQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696847520; a=rsa-sha256; cv=none; b=PIjv03GeSiBLMNQHrM5bF3mk6e3mwb7Y4c4y8mzs9BjSr+sKv1nU620PLvTUY1TCyKrTX/ eTqQZluLqUNTJmXzFa/CGLZ9XV0OPeKJaWleVLfZUQeE7W2h2yrFGtyRTPKFAy8gLzB0e0 x5zK2OZ62mh4XDpoKGreLYt78VAvhXbixfVYzysBfB/wbLXuae5PqwFhLYasb2WBHOb8T0 7DWRG3Rh290EpMSccpZs9OpimWEQI3Fq1wJ/zXkud1BHtVRqP+D2qSQI7dOoXSy73DLghM nk7c2HPOS6FdHImdm0Yb3i2RBN9tK2Ld2eOnKZgVrf5RRHZMeImX2q44wkakrA== 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=1696847520; 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=nhBaMlFhOk5qCO5x8pwNGMk2kpOyxJ75IS0YNIOneeQ=; b=GsUtZH2RvTzYNGFT3Ch+JpbyWbPYCH5c0butsKfnIdvZffzx0cy9J//ku0KAQvLSmMjf7S 1qnG5pGZF1aJNW3pdShrjy5vOl8X7P8EdJt3C6o6nIm5S5yD+CCPoyUDE3fodGzEG9umiX CgPRKB8X1h18AwVEvADLYhZtgCJw0uZ57OLeC58x8+TzlT0yKdA8HJjoVPSZIvR65RVR+w Ek5ZZD/H3leyEaTg//VceRWfK+omMvIkaun9UfR0EHpDJTfOT6wwEQXOrbjX8L8jRVYAPQ KaAqIBEw0pfI1P+NWDRsdNH53j+rnEJr9y8GX+37nq/5za25Eh2K/NWN3X9XKQ== 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 4S3wM43J6bzsMt; Mon, 9 Oct 2023 10:32:00 +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 399AW0kP003785; Mon, 9 Oct 2023 10:32:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 399AW0rH003782; Mon, 9 Oct 2023 10:32:00 GMT (envelope-from git) Date: Mon, 9 Oct 2023 10:32:00 GMT Message-Id: <202310091032.399AW0rH003782@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 978be1ee5d5f - main - sockets: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 978be1ee5d5fef983b4163955e15c4269c0ec76d Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=978be1ee5d5fef983b4163955e15c4269c0ec76d commit 978be1ee5d5fef983b4163955e15c4269c0ec76d Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:22 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-09 10:30:22 +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 --- 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"); /*