git: 535c90cdbcd9 - releng/14.0 - rtsock: Add sysctl flag CTLFLAG_TUN to loader tunable

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Tue, 03 Oct 2023 03:37:21 UTC
The branch releng/14.0 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=535c90cdbcd9eed3e0e46ad90a886ac6d0e53386

commit 535c90cdbcd9eed3e0e46ad90a886ac6d0e53386
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-09-25 10:10:46 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-10-03 03:34:16 +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
    Approved by:    re (gjb)
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D41928
    
    (cherry picked from commit 21a722d9593eb477f4ccdad011a2b4df0727fc62)
    (cherry picked from commit bffb01eda9bffc3307ea8bf70f91087ed316e01c)
---
 sys/net/rtsock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 1a83fc2d8abe..019b9e80291c 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -241,7 +241,7 @@ sysctl_route_netisr_maxqlen(SYSCTL_HANDLER_ARGS)
 	return (netisr_setqlimit(&rtsock_nh, qlimit));
 }
 SYSCTL_PROC(_net_route, OID_AUTO, netisr_maxqlen,
-    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
+    CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE,
     0, 0, sysctl_route_netisr_maxqlen, "I",
     "maximum routing socket dispatch queue length");