From nobody Wed Sep 24 13:30:29 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 4cWyQY5zJ7z67rSW; Wed, 24 Sep 2025 13:30:29 +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 4cWyQY3PHmz3Z9R; Wed, 24 Sep 2025 13:30:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758720629; 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=I/MoWSRMPCyCIWwGlYLVM0tGDNRPU+1/PYNxFrnotSQ=; b=dW6KuS8XUAl6DY8onnPI0jl12DrWsIuuLNWGCjGEYdEyFpkqxRi7reuVaLqS8e3Q+Iim5D Mmpf3JGsxzeui3YDI/DUciWGx/7vQeE9DwJ0NhC1CHlP3UNZkt/sVIpUWdzBnWbM4Oopyk 2zFJwu0kEw2J4E62hkF7aQmbNHracRdheOaLUdRGCuwCB97rIcZLJBsrY3jo/VgLTJaFiZ pZoH9WSVJJXkpRZrXSFKBHipnO/2NH/5SSsIWSMvi7oOn4+xlmiRlPzn4JH6XUwCQNa+e/ xhZyop5bhLiPoIi2EM6kcRwW0hAXJLCTrqFmA899v1mxN+VvuKjHAu7p3GElsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758720629; 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=I/MoWSRMPCyCIWwGlYLVM0tGDNRPU+1/PYNxFrnotSQ=; b=DC582gTYF2pZNv4S/hq0QVVhr5pONF+5GbjV6N+KE9+JkJWlhGNtPqaRbqne0e4Q1tDsdK 5C2fNbO7D56n93x4oOVKEJYcG3f3IcYy76jfVPAun6CmbKwb6T4m8BSsyncBNNo/GRMbk5 FCXOdO84GyiJ82YqAcPQz3NkAFE+9pGZAdQo7oMVqsrt5HSI9c8uPENQ/MVVYjtB3djj6S sj/ryipuQ7as0FYCEbE/9mSD2+KcGMqDZfTvA/fyIk5sDK7SFyO/EkAwuZZNmzxNNZcIDx iiu8dOKC47I94hSOAyZp/roXZXJRi3gdwaWKC5Pp63zXo9K3a+HYeeMUzs3CCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758720629; a=rsa-sha256; cv=none; b=V4ztM3KoJHxLXUkKQFFGVdPIPJhduJWW64plUYcpA1zSbBBYgAFzAy6HiTGWXlF0XfU15m gSPcJ2r+qHVJXcyhOYMSr84/r1A6W7/Mx/FwYGTMNeFvhOtDTxUE6mlY4hGoTm3BD2LLW3 n6dKRclA7qybwq90+UFngH5YCkmGKFxQVcVtForZ9B1d71M9gwloq3zuTGBoPf7GtN9Hm3 +vGFs2ImBhuNcUlitHHpnO7s1ZpA++ZxJDOahBaxR5ZdTCce4kv6Zr/DvNiszlaKcsFHBE NBtwxa2YFVPupSRnO6NmbxbzAOICpOfxis3sHgSHsBZZxV9wYIE5bUYGBeef6Q== 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 4cWyQY2zbMzZbQ; Wed, 24 Sep 2025 13:30:29 +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 58ODUTmf081952; Wed, 24 Sep 2025 13:30:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58ODUT7i081949; Wed, 24 Sep 2025 13:30:29 GMT (envelope-from git) Date: Wed, 24 Sep 2025 13:30:29 GMT Message-Id: <202509241330.58ODUT7i081949@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: 6bcce275a5a9 - stable/15 - ifconfig: Display the IFCAP_HWSTATS capability without netlink 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: 6bcce275a5a9e10f8e5b990f8cfa2166aa49875a Auto-Submitted: auto-generated The branch stable/15 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=6bcce275a5a9e10f8e5b990f8cfa2166aa49875a commit 6bcce275a5a9e10f8e5b990f8cfa2166aa49875a Author: Zhenlei Huang AuthorDate: 2025-09-21 16:47:45 +0000 Commit: Zhenlei Huang CommitDate: 2025-09-24 13:29:24 +0000 ifconfig: Display the IFCAP_HWSTATS capability without netlink This follows the commit 4cdc1f5421c5, which introduces the IFCAP_HWSTATS capability. Fixes: 4cdc1f5421c5 There are some high performance NICs that count statistics in hardware MFC after: 3 days (cherry picked from commit 595acb29a35f36a4fc08b89d3a476f16c1d108b4) --- sbin/ifconfig/ifconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 41d2f4603983..9aeb4a09ef49 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1663,6 +1663,7 @@ static const char *IFCAPBITS[] = { [20] = "NETMAP", [21] = "RXCSUM_IPV6", [22] = "TXCSUM_IPV6", + [23] = "HWSTATS", [24] = "TXRTLMT", [25] = "HWRXTSTMP", [26] = "MEXTPG",