Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795027515; b=JlGYmB6Ufe+tZk4NvTZTvFPHd15fyY7tThbrd56Tyf6yAHKQsOfiyQ7w+2FocXpUOmIz 2/MMsOgYd4B/mI+pPaEDkSrpx94+a7ne2zewPfpHvdIySbIxNRykYwRR/4DIIfZplzypc VwbKJmJSUYWdIy+o2/DW/e44EjKgUAohVxwJkKTvdu1gg7agy/oQPnKFf+UJCECzagy/e f16nfibzv5n1Y6/Ni2/ux0hla9vlE5Y9mZC3LKY1wfwTeUzbT/1TGedC0u8e0yt1IqZiL 0Jf9CpNHWuaPEyxqD6jdQ46UaCzFfSMNZDyDS4oBODUGkXBLUNDPRFzHeQ0Ko7tXcdw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795027515; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=i31t+IjDvTZ0R69w+YP4kFX4xhAaDj1GFspctHP82hY=; b=qKL74r0Srcq12o9tc98WeUDq6d4hHnvwdl3B+EZ9ZXupdsi6IxZOBI8vx11L3nhpaQIi IsRvGd3+OFUn9TTfMHCLWujpsBPuUMkL3uoWCTcEPWdyrru4uO/4QHo+Q699mQ4tndsMn lgJJpYYKKhSQv90loDud6fDuAPY/OtEDvRyLKxMScvTYQXiHJST/Y2fi7mIWUfZsXwzO3 cffdXGL66z7qClJXyI8SeWsJv1Un+RlSPzronP2iCh2FX0dJfxDatFycQEgshxg4XdBnJ DuF5QQaUbIKJxS5bL86tw3T86b0IMr85g4tSow3rX3zJLadMuAnZEyZPYkegiCFBTGQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=QYv1iywq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 735CC60A2610; Wed, 18 Nov 2026 18:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=QYv1iywq Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA6771F000C4; Wed, 18 Nov 2026 18:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795027515; bh=i31t+IjDvTZ0R69w+YP4kFX4xhAaDj1GFspctHP82hY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QYv1iywqX1d0VQTBS3ZX53k9iUe6kD3ugdj8WnyPEebwHNX0w1vyC6DTnnSKfS9C1 ZU8PGtbPhddtf0lFJ6QmvUo/IOjI4KFtLlAITXv85Qvwdjxi+PO8v13Ln4r16H2HYE j3IjTz+ZMNu4J62mWk6XCaIYKDB4m2l/4WyxcZlM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nicolai Buchwitz , Justin Chen , Florian Fainelli , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.18 1816/2151] net: bcmasp: fix mib counters struct alignment with ethtool stats Date: Wed, 18 Nov 2026 15:59:11 +0100 Message-ID: <20261118150227.958301585@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150121.603863898@linuxfoundation.org> References: <20261118150121.603863898@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Fainelli [ Upstream commit db45c15c98134f5ebd13c4dc5b6be5d1cd3fc706 ] When EDPKT stats were removed in commit e9f31435ee7d ("net: bcmasp: Add support for asp-v3.0"), the corresponding entries were removed from bcmasp_gstrings_stats in bcmasp_ethtool.c, but the edpkt_* fields were left at the beginning of struct bcmasp_mib_counters in bcmasp.h. Because bcmasp_update_mib_counters() and bcmasp_get_ethtool_stats() index into struct bcmasp_mib_counters sequentially based on the order of bcmasp_gstrings_stats, this 16-byte offset caused ethtool to read from shifted offsets: the first four software counters read unused fields and reported 0, the next four software counters reported the values of alloc_rx_skb_failed, tx_dma_failed, mc_filters_full_cnt, and uc_filters_full_cnt, while filters_combine_cnt, promisc_filters_cnt, tx_realloc_offload_failed, and tx_timeout_cnt were never reported. Remove the obsolete edpkt_* fields from struct bcmasp_mib_counters so that it aligns with bcmasp_gstrings_stats. Fixes: e9f31435ee7d ("net: bcmasp: Add support for asp-v3.0") Reviewed-by: Nicolai Buchwitz Reviewed-by: Justin Chen Signed-off-by: Florian Fainelli Link: https://patch.msgid.link/20261013204439.3494046-2-florian.fainelli@broadcom.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/asp2/bcmasp.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/broadcom/asp2/bcmasp.h b/drivers/net/ethernet/broadcom/asp2/bcmasp.h index e238507be40af..65ce944a01911 100644 --- a/drivers/net/ethernet/broadcom/asp2/bcmasp.h +++ b/drivers/net/ethernet/broadcom/asp2/bcmasp.h @@ -249,10 +249,6 @@ struct bcmasp_intf_stats64 { }; struct bcmasp_mib_counters { - u32 edpkt_ts; - u32 edpkt_rx_pkt_cnt; - u32 edpkt_hdr_ext_cnt; - u32 edpkt_hdr_out_cnt; u32 umac_frm_cnt; u32 fb_frm_cnt; u32 fb_rx_fifo_depth; -- 2.53.0