From nobody Thu Jun 11 20:28:18 2026 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 4gbvNl5Nc2z6gXH6 for ; Thu, 11 Jun 2026 20:28:23 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gbvNl4q4qz3f1G for ; Thu, 11 Jun 2026 20:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781209703; 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=ILOo2YgeULYXSgpYgsXoWjnXmZWtOQc+RX5iQHfRgaM=; b=c5rcGGy/KCumdVDUe5Rmw90T91OV6+lt0XozUtW3f2UEqtI0YTTWSc+ZuS6e+a22Jc8Smh u5lK8aZqk0bvLgG6mcVZ0NpzdIe5R9Pn8jjJjXhxbjKlILE6Jo7Xxqb4AAmEhgrCo803ci Hcoeg4n37QW1prklCkq3FuauQFQzWu1drfp0OiuTz1EumGUCAuhLKCqk1kiZHMtAvnZu6Z PfGbcOhPenynR5vQYkbEB9qhm8sXtt+U4VczQV07sjD2YqHvdkPD35t0v5AmIFSSxdHZQ+ Jb0Xfsy9a1C8qif46on/KDa0aY/G4wojPNyxbLzGVo7DSdktKkoc4WHMvLNVvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781209703; a=rsa-sha256; cv=none; b=hYMlor/O9FG4X/L4bO85tF4l0MBrwgM/97WO25DtA74fg9pLIdVPlGuR2QHyhds0DTLuxz Xaf+d+C1ffYPpgrU+JY8IPRUI4fGcWyEQbFt/yog7wu/Hzv9KTfOqShTwL047dWh4Gblom MNVO9U8d4N6xsyNdF8Ec9NcphJ9U12h051spK98keqZOwr8VgNt4daQbH6CQ1Xa4Sj/vxu H/jeJJFtzqRX1RbzJ95ckrFyIknK5CeSOkG5sa1wIF8f89bSL9QRsoaFIko/P7rdEg+ye1 nGHmgzkTjxHxo0ZXfoN1Ea4mGKzReIz5cBdH0GzEiHRCbqyKOFYIEcwlY8oj3g== 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=1781209703; 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=ILOo2YgeULYXSgpYgsXoWjnXmZWtOQc+RX5iQHfRgaM=; b=Npux4ALWLLi3dTYp4whgTP1/oZ+z92jiIv6KIdB+4J013Rx5VEfDUu9+0d6hKYYDVTkFe/ DSYWyuju++uuktVlCrt/4X4+Qo8hDTg3kSwa2Q2CMNOz8ZLqEbGtHTZ9IlLnYbPMyMy00L 2Qu7vaANBCc0Vh/pFEeFvnYGlRMdPIla6QKnmAFeKH2UAyFgLdElAf8GBld5+LDvc7G9OL LCqD3EUIM8KMPd4W9vfTqEarfKoj0H8xmp9LlvjTG6YFoX0g2x58D+C/DIO+DUgKi7u/3I ZS849q9zBkplSKBP1WkqjVpmcwbRSipnSvCTYDhBSm+wtMmkkKWpK3qMAzxoJQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gbvNl4J04z15np for ; Thu, 11 Jun 2026 20:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 206b9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 11 Jun 2026 20:28:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: a9ebef44a473 - stable/15 - pf: switch to getmicro(up)time() 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: a9ebef44a473b1262abad53a22855317c9406948 Auto-Submitted: auto-generated Date: Thu, 11 Jun 2026 20:28:18 +0000 Message-Id: <6a2b1a62.206b9.e91ba37@gitrepo.freebsd.org> The branch stable/15 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=a9ebef44a473b1262abad53a22855317c9406948 commit a9ebef44a473b1262abad53a22855317c9406948 Author: Kristof Provost AuthorDate: 2026-05-21 11:31:11 +0000 Commit: Kristof Provost CommitDate: 2026-06-11 20:21:57 +0000 pf: switch to getmicro(up)time() It is reported that micro(up)time() performs poorly in certain virtualisation scenarios. Absolute accuracy isn't required here, so switch to the slightly less accurate (as per the man page) get-variants. PR: 295043 MFC after: 3 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit e4130ac13d2fe9c17b8f8e86d39a7b5223fe7b79) --- sys/net/pfvar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 9e0917b501e7..2ac61b2fc308 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -2403,7 +2403,7 @@ static __inline uint64_t pf_get_uptime(void) { struct timeval t; - microuptime(&t); + getmicrouptime(&t); return ((t.tv_sec * 1000) + (t.tv_usec / 1000)); } @@ -2411,7 +2411,7 @@ static __inline uint64_t pf_get_time(void) { struct timeval t; - microtime(&t); + getmicrotime(&t); return ((t.tv_sec * 1000) + (t.tv_usec / 1000)); }