From nobody Sat Sep 27 15:14:20 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 4cYrb20klbz68DdQ; Sat, 27 Sep 2025 15:14:22 +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 4cYrb116nzz44mY; Sat, 27 Sep 2025 15:14:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758986061; 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=mdTuFoS6wikXrPI9X/9d5Aqo9+69mZV4gTa9Xjf+Z6s=; b=mBXsyf7/MuP3PUEcnFHu1yWJsRhI0DEIVAfQ3w8u4KcIMVFrHLihnUHjRHM30Two8NBTcx ozXaFnXU+D40QCe+6cG3JwrS/m8QDWRR/2Sg3cIRUYlYI5aT9yqPakOdmOynYLsyEi6jUE OhbwNwA4YqRIyTzwaahRK1MfZFj7qR/gjMl0RiKgOfZ7xeYGYILNzZqQpk3cMcFFklQR53 1Ygoylti0zkqfL0jtK3eCfYWP3+9v2ejMAUnGVx2YIRqj+PsNnbrUQf0t6/ojs+Y4KcM55 OjSFlShCoExD3mONAKdhUbuGKnqJaIOWMgy1J6iVsL8YnC8qpeENjX5FQ5vs8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758986061; 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=mdTuFoS6wikXrPI9X/9d5Aqo9+69mZV4gTa9Xjf+Z6s=; b=F9VNIByQtpFXDhUz2xFNpCF6rVXupk+kCERTelzoooRRPxgT/t+CG0ntoTFTOfWo6+dvqL GwxUwTJZo9e98MS2ELDrGunKAXKfmCnPhAkGRR7tckCV71mT8beYQQCB1XxSesXZETOZGc hfOXxY1fc0960JAQMpAiQBp+ryN3MNH89KXkZe+PrTdE75TPUg7q/GbT0+HUKD1thJHn+2 RP1lV/dUM+abFIuqYavuugWfX2C+VogYnRobHMJDX0iBeThEafavIf1wCLjIaTi0Mqre4Z GgyCOS+Hgd+Idx1kFnQ5t8EJgweclEzcIksn8X3y1nZ+SGhIiuNW6vwh3Zngkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758986061; a=rsa-sha256; cv=none; b=ZckqzJsB56cE3w2bp5UqtzvRpqMcbSGsbG3MFDYcvDoUtqWpL/AKpXkAukmFbcSbJzYCYr rpSH+IXN5SMFSlHjNhmiDw66BsKgfjxx1opTRgjSaNIMgkszHpLP/qDVv4dFweuxCweuQ9 6l3KCoNAeH/4oYcp6QkNs71LoWlJLHCDYgiUBnmLuqFD0eTvzD5okw6UC5CnC+c2T/oXDq aMBZASRahi5XxIlZdSPPyytjsS4HVHjUMLFL2wrk/pz15q931S3tKkWMOniHYh13ByESrG nZprBvMI7kUDueUuwXp8mFfTW5Xwr/OgHpZox2VlbvfVJyHxmMsxuMWWEg2qXA== 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 4cYrb05nhTzftM; Sat, 27 Sep 2025 15:14:20 +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 58RFEKn5083836; Sat, 27 Sep 2025 15:14:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58RFEKsU083833; Sat, 27 Sep 2025 15:14:20 GMT (envelope-from git) Date: Sat, 27 Sep 2025 15:14:20 GMT Message-Id: <202509271514.58RFEKsU083833@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: ccbc722a1945 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: ccbc722a19450df2981049777d4930deae94a840 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=ccbc722a19450df2981049777d4930deae94a840 commit ccbc722a19450df2981049777d4930deae94a840 Author: Zhenlei Huang AuthorDate: 2025-09-24 01:16:13 +0000 Commit: Zhenlei Huang CommitDate: 2025-09-27 15:11:41 +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) (cherry picked from commit 032918dfd155936a79847f17ac355439e6b59027) --- 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 489ea270704e..5afdedd20d23 100644 --- a/sys/netinet/tcp_hostcache.c +++ b/sys/netinet/tcp_hostcache.c @@ -193,12 +193,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");