From nobody Thu Feb 26 14:33:53 2026 X-Original-To: dev-commits-src-branches@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 4fMDVB1J0Nz6SYCj for ; Thu, 26 Feb 2026 14:33:54 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fMDVB0cQNz3H1j for ; Thu, 26 Feb 2026 14:33:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772116434; 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=GHtR696sAihaDa8TyUrUi2KOoZJWu4YuQLkw0hRarcM=; b=MaV+Kf8NPaXfKRBoF9h9uSyQ7VGAVy5TX2lHnEPh2hQL5OpO8XqZCOYgHM9K3fHr2qmh5M X3DlN70XoUhV5DbqbFWwwSnWKI4kU1THQPrSELmUa3hHdjarvkxqUmqZmGi3a/SILpX2iO ctJgDAyCBKFYHQ8KzHlx7jcNbou75jXBl1x9qjjZoqVe5+shEjj1SNTecsDKJjg3lIvQV8 I3P7nRTWhOWUkAvmpT1w/Z7BcwgTK92a2h/3Sipcf8yu3Q9ccz7W/c+7N4yYP3bSswhhQv CAP+JYPCjkMG+7rKXl8sbxbINiuNj3AizyIU8fo4/wQWe50JMn7mHNrJNUZHwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772116434; a=rsa-sha256; cv=none; b=sdDoRW9LZp3FlXEwhtrJlITLlueSh5cjHn9zoXG55IQ0DLPhYV8a0T9B1+QkyV/y4UeEj4 uPoVff9s8X0hyACCp5jGCJImo+piuckg9rfp76VrG3q1gVFubK/y+EaV5dKNFA5nlvhYxO qMNY8MRoi132YEpiZ0HGbFHXqoc27XEjs4ezzEnIGlYC/bUJ01oLaY4leGzpwMVBYDXklG HVHGC5DM3tBAqvCfcYeNiZiavTELOGItRkmIUFpZIq7zMM3MVfD+wj56I0bBuTCH9o94mM RwdIOKr59IzTUd1Z+dnDVr1+aTsJaU4uiAzofO0aKFOK282dfML8PltVEo4rYw== 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=1772116434; 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=GHtR696sAihaDa8TyUrUi2KOoZJWu4YuQLkw0hRarcM=; b=Vlp8dhrobxLXxsfYLuwVH8saBDEsTPSe4tBwBYdqZuXejgNRk5K/A84jmUvtxHpMuCJEkC 32JNeme/O7VGi6zbYEKKwnmd4xBBRiuYNG3oDZssGyWDiHSGFvT4ElptGI+IcgWMS0ogIb 0S4RXnk3K22yOHFjj5AnCkPyFadQjzYQCGRIwwGA8xjrcj5ZElCLUBPTk4mLrELqdn9/LZ sHDWqVpGXHt3qz8k46DK/nyWxUFWRtORwu8/JpmchT0CkMvx9xijcp4u43JhWlra6eEsur HzeZb7hv6bXDiDcGcgTYTr/7P8zuSi6o4TCZiUQTCtzoy7UlJvT2gVYfM2Ajyg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fMDVB04TGzcL7 for ; Thu, 26 Feb 2026 14:33:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 268c3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 26 Feb 2026 14:33:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 8f1de03b50d0 - stable/13 - qlnxe: Advertise the IFCAP_HWSTATS capability List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: 8f1de03b50d00211597d7221055b44890fea7fd8 Auto-Submitted: auto-generated Date: Thu, 26 Feb 2026 14:33:53 +0000 Message-Id: <69a059d1.268c3.614420ce@gitrepo.freebsd.org> The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=8f1de03b50d00211597d7221055b44890fea7fd8 commit 8f1de03b50d00211597d7221055b44890fea7fd8 Author: Zhenlei Huang AuthorDate: 2025-07-22 04:11:02 +0000 Commit: Zhenlei Huang CommitDate: 2026-02-26 14:17:22 +0000 qlnxe: Advertise the IFCAP_HWSTATS capability The hardware can count statistics and the driver has already retrieved them via qlnx_get_counter(). Advertise the IFCAP_HWSTATS capability to avoid the net stack from double counting IFCOUNTER_IBYTES. Reviewed by: kbowling MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D51451 (cherry picked from commit 386960a8805edc6d5ac6bb6215ad102a83314549) (cherry picked from commit bfbb93b6de6afc8aba8df90e2a28db1c93cbd143) --- sys/dev/qlnx/qlnxe/qlnx_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c index 2586539617dd..ad7843dd5596 100644 --- a/sys/dev/qlnx/qlnxe/qlnx_os.c +++ b/sys/dev/qlnx/qlnxe/qlnx_os.c @@ -2389,7 +2389,6 @@ qlnx_init_ifnet(device_t dev, qlnx_host_t *ha) ifp->if_capabilities = IFCAP_HWCSUM; ifp->if_capabilities |= IFCAP_JUMBO_MTU; - ifp->if_capabilities |= IFCAP_VLAN_MTU; ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; ifp->if_capabilities |= IFCAP_VLAN_HWFILTER; @@ -2399,6 +2398,7 @@ qlnx_init_ifnet(device_t dev, qlnx_host_t *ha) ifp->if_capabilities |= IFCAP_TSO6; ifp->if_capabilities |= IFCAP_LRO; ifp->if_capabilities |= IFCAP_LINKSTATE; + ifp->if_capabilities |= IFCAP_HWSTATS; ifp->if_hw_tsomax = QLNX_MAX_TSO_FRAME_SIZE - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);