From nobody Sat Sep 27 14:02:15 2025 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 4cYpzq4kH3z69Myl; Sat, 27 Sep 2025 14:02:15 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cYpzq23Z6z3sXl; Sat, 27 Sep 2025 14:02:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758981735; 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=Yb8NM3xMLF0RtGgWgXRGRx3YKSa/3PVi8C01OaX3FYM=; b=es8MQf1WP/tOoytZa89RwMuNd4AxFhE8T5IBm7L3wi8td3wlpcs4RrxE7uzGYGH6ZpWAEp u5f3QRYJTPKg2km46rFnWiU9RRBBW+WPpfYf/eFU1YKByozSDBEgRAiqpQIQx4NpcAh92z uLWLagyOaOEXjRRo2aH0fZZUA7QFcpdrTtgNf8Fo6AvTGTv56AUHsyQy7EUjFZDpqEuIC4 RImgYWovrJWtwjLlgd8xm/dq7opNm90N/fRqkMxa/Xi+TkRIDnhcnoc/leDi1ROJYlphmC vW68+AhRc0jYhkC1VuExAVe6TJg5KPEU3wz3mnH9wL2jTC0ojskTBzvdntVBBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758981735; 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=Yb8NM3xMLF0RtGgWgXRGRx3YKSa/3PVi8C01OaX3FYM=; b=pNzqSCvRV40LM/z4+7bEprSoxIp8TfXbhi+GNgap3Rd6DjW5mthJ6e5U5mTwTw9hA4qird Yz+PRX8sTTE0SCjJ0Zs4jtzwx2poP3TmGHSYg5n7U/sKECxX8aXMgsohWt4rBRCgqPi29n ek8BGVTM3A3npoj/OYWQ4pQvrBVDa6x2BDJ3S8NRneLESlSQmYSxWw4X8d6Ud+iAfoQm/e vygjPeDxk+zN72Dj1uSEwmA6veGUiz0hOYLcAz8xW7GZLywMJOdtsU3MrGKhcHfasv6f7X UrN1KCJqdoHYzqiZ6pRaPBZAhs1I8I4RUm8sBEl49oi4OxeagXn3W2fYxZ/KoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758981735; a=rsa-sha256; cv=none; b=aKVfCpc4w/FDiYOvK5Eh+ip8f6tMo+hC0ebhD7OfQglNc5TMVibAS1Kv/0rgCjcNekTK61 2chF7eS+dR+ykoV+FHbCxnGdi2iRUAMogj/QBAJh4W+Qu+1KnZu4yWAPf8LS/mighXRXHV 4a1Vgk3QGQo4kMFEL4JXofoSfw3AtMiUvK3IeNGax/fUzkWYqq3Ycd8fknTxXGlyN+7xfq RgxezDeYMKBgCGoaZHuhNQZyxoCXT5R4gJRHiie1wNLHmxJgQv1J4NUn15PuCmZ7oXGP/8 YxqTnLBqc/t3BVIMgvh5FmizUACZppTFt3kiUau+dI1mpGRFsTlZS+WLlWXpMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cYpzq1NJXzd4m; Sat, 27 Sep 2025 14:02:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58RE2F1w049488; Sat, 27 Sep 2025 14:02:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58RE2F54049485; Sat, 27 Sep 2025 14:02:15 GMT (envelope-from git) Date: Sat, 27 Sep 2025 14:02:15 GMT Message-Id: <202509271402.58RE2F54049485@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: 032918dfd155 - stable/15 - tcp: Add CTLFLAG_VNET flag to some sysctls 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/15 X-Git-Reftype: branch X-Git-Commit: 032918dfd155936a79847f17ac355439e6b59027 Auto-Submitted: auto-generated The branch stable/15 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=032918dfd155936a79847f17ac355439e6b59027 commit 032918dfd155936a79847f17ac355439e6b59027 Author: Zhenlei Huang AuthorDate: 2025-09-24 01:16:13 +0000 Commit: Zhenlei Huang CommitDate: 2025-09-27 14:00:56 +0000 tcp: Add CTLFLAG_VNET flag to some sysctls The two sysctls net.inet.tcp.hostcache.list and net.inet.tcp.hostcache.histo are readonly and are to operate hostcache of vnet jails. Add CTLFLAG_VNET flag to them since they are per-vnet sysctls. This change does not have any impact on reading the two sysctls, but `sysctl -ANV net.inet.tcp.hostcache` will report them correctly. Reviewed by: tuexen, #transport, #network MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D52693 (cherry picked from commit b1f96169cfb50a7b65aee115b2c9ad2f00797bbf) --- sys/netinet/tcp_hostcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c index 36a4f813d590..df639876a85c 100644 --- a/sys/netinet/tcp_hostcache.c +++ b/sys/netinet/tcp_hostcache.c @@ -192,12 +192,12 @@ SYSCTL_INT(_net_inet_tcp_hostcache, OID_AUTO, purge, CTLFLAG_VNET | CTLFLAG_RW, "Expire all entries on next purge run"); SYSCTL_PROC(_net_inet_tcp_hostcache, OID_AUTO, list, - CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE, + CTLFLAG_VNET | CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE, 0, 0, sysctl_tcp_hc_list, "A", "List of all hostcache entries"); SYSCTL_PROC(_net_inet_tcp_hostcache, OID_AUTO, histo, - CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE, + CTLFLAG_VNET | CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE, 0, 0, sysctl_tcp_hc_histo, "A", "Print a histogram of hostcache hashbucket utilization");