From nobody Mon Oct 02 09:09:57 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 4RzZsd5gnsz4vq3y; Mon, 2 Oct 2023 09:09:57 +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 4RzZsd57RMz4Nq2; Mon, 2 Oct 2023 09:09:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696237797; 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=KkkjSYMABSEp4BeMeNo1sp1+TqxHOfH2gj+2cQ9dki0=; b=tfpGXzdhZXjhr2/TfD96wPdPdk2/zcTKpZZ9OiKI+EURD48Jdx4vsufvOU/duloSDzq+ZZ XiWHq+1dVOLv5JnjS1SUhkLuCGz/Ls+I4Ib0uW/JyVvyYVZQGdBn5n0FYW0ZRmVoabdwqn fmVEqF17LJTw5lWh7GOaEpkWDmk3NdOzio5CKfE9CJwHvMlCfFeEM+6qZswYtZ2m8DLb4L ywgsjQLwocKI4vdoDF71SsHSOYbZ9ZL3IZBshF2RH+4JjB0/yrNjyEn33GKi0BDPHdsrcy j1FXD2kveZaEO1dsEgm2FHYo3NVlxzpohfhqSmnknRdwFTMvubmcaoa+YC70YQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696237797; a=rsa-sha256; cv=none; b=VephHD7XRmb1b5sOCUx/wb6dPogrj97uLoWJwW19p7m09GDGtmQtkI2cSOeH5TMFESLGMN 3s6sAzqPheX0CR0b3WoTFU8mnslHigWA0wINQHXpOJNbsinZekycUYDPNaF9gnrNXLuUNu e2So1ObLduIVDVNh0YArCAfhugESNLh8musXbSQMzhNFi1bG5PD+rHO6L4qtxqoua4O0Tb S5PaNqRSxgyQmoMM7p0MSv3IX8TgXM9TBfuP1W4SVsZw+XzM8Ffi+S0C2fRYPM8iHRzwJS VeabHmpVtVsI2T/AkfchKHeKwQ1bRyegwKfpUyG8E2BwQkEJ0ErWw0sCM0reqw== 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=1696237797; 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=KkkjSYMABSEp4BeMeNo1sp1+TqxHOfH2gj+2cQ9dki0=; b=A/m6USiqt9+mzi330ocjUoQgkOr8BhnLpkf1RIkhteGOLE+HGGR5h69krvRxeXQ0DppEy6 i4XKXFbzF3CBhcIa9ClnQ9FsAZP3OSe/Vc8XxfoRjOqo3Qyc5FDwg2TA8Lcf477LOGR1il D8pLPLigw4rSUW0aSoZVsE0pGkEcNYduA1LBgi0W/+VLVby6gsm03Asqu2awJHAIU6HvyA kjO9JLz9aVytM19knW0w0lq9VHIfWAGt/gWd0eXlRr21CbKxfUuzzMz47iRzz0xvaN0fnx DEgq4kdzqJ6YlzAMRLzWb7ju1dwGHz8ywxDEv+rVmuw+AK6M2KIybYd6ufPMkA== 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 4RzZsd48WTz15Rq; Mon, 2 Oct 2023 09:09:57 +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 39299vSM053683; Mon, 2 Oct 2023 09:09:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39299viG053679; Mon, 2 Oct 2023 09:09:57 GMT (envelope-from git) Date: Mon, 2 Oct 2023 09:09:57 GMT Message-Id: <202310020909.39299viG053679@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: 453abc9f3a3e - stable/12 - rtsock: 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/12 X-Git-Reftype: branch X-Git-Commit: 453abc9f3a3e1a305e49cbf425122352a15055fd Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=453abc9f3a3e1a305e49cbf425122352a15055fd commit 453abc9f3a3e1a305e49cbf425122352a15055fd Author: Zhenlei Huang AuthorDate: 2023-09-25 10:10:46 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-02 09:08:54 +0000 rtsock: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable `net.route.netisr_maxqlen` 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: glebius MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41928 (cherry picked from commit 21a722d9593eb477f4ccdad011a2b4df0727fc62) (cherry picked from commit bffb01eda9bffc3307ea8bf70f91087ed316e01c) (cherry picked from commit c6afda2e5a0389ce293d3a3ced2889979aa2e442) --- sys/net/rtsock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 8009ec5dd0a2..aa2f7422d6ce 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -196,7 +196,8 @@ sysctl_route_netisr_maxqlen(SYSCTL_HANDLER_ARGS) return (EINVAL); return (netisr_setqlimit(&rtsock_nh, qlimit)); } -SYSCTL_PROC(_net_route, OID_AUTO, netisr_maxqlen, CTLTYPE_INT|CTLFLAG_RW, +SYSCTL_PROC(_net_route, OID_AUTO, netisr_maxqlen, + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH, 0, 0, sysctl_route_netisr_maxqlen, "I", "maximum routing socket dispatch queue length");