From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796384562; b=1n/rBtIQHF78AkLOjqR9oJnteCJozgi3Ov0rmckjqHZ3zt60630vrtxeOBEHdUt+hzSL agQHSQK8KI881lWr3spWtNXAVy9IomWfp7W/ovCRsrVM3F/1EnSkXH6hwHLQhiJBA5tMx q/i2zxSqr4z/hZxkvyMogLfXvEpc9dDfUXIu4c8oc3jVyGpsVMDkM4YGP9CKWbtWwfQXm kiimhghckKXv89clQm87tG0OpMiLSJ1ZpUfSdBVVDJPsgPCZWWl+HmfgPVE2ocjq9k7xi Ij3rAVRt3+MzxuMFbufPUsJVsqer0b0O3sV7WKD7HeIx03hRoH8x+rbUi60F5b2SiDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384562; 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=DH/uDYmodBjHazPJYOZV9nZH8q31ODn7t0/ZrsxdBoU=; b=jBorZct79Fr82mqnu+liyj1IThTu4nSR9Lqqoc0zoipsryUeWA4BJUt4xIAJv+tZh8IO 0fPJceWfPGR4P7qn5ZYdXC3iK6H40AmRlRXK1OVJJoyI9BuhCNhJpeZ6x0hUjDYJLZIxQ FQljKqo3L6qmIGj72MGnLgwnFHQjGDDJ74KYD+AaL+VA3y9D8llY29mb8guFQYyfxZU7i uJciMcoRf3/noGWbDtLzCLDZe3GhdjyvzrfKRRl++ML+bem3wtppu9SIy3rfQB/jXoDFw bu3c70OlPHuX238P6X4IqBb0NX4KlFkCNdny5OwQoRG0zzh9bVyeDTXZFfHHkmsUcuA== 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="exuY/FGT"; 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 F219B606A32C; Fri, 4 Dec 2026 11:42:41 +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=exuY/FGT Received: by smtp.kernel.org (Postfix) with ESMTPSA id 684DD1F000C2; Fri, 4 Dec 2026 11:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384561; bh=DH/uDYmodBjHazPJYOZV9nZH8q31ODn7t0/ZrsxdBoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=exuY/FGTGldMKdPYdpzblTYnZv8aIEJh1/MT1nJ+bjrEj3EdTCKR0n1IHJF1rzVuz qEx2CEbIr7ULQp8HU5kCPW0MLCLSzX7IdUqHGS/MSl66YDrifQQD6xh3ms7hgI83aE aKzdN1Lypt1a6dYmIbd144XYgfLnU9PZx1Pi/Ypk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Or Har-Toov , Maher Sanalla , Tariq Toukan , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.6 0203/1167] net/mlx5e: Add missing Ethernet multicast octets to vport_rx_bytes sum Date: Fri, 4 Dec 2026 18:53:50 +0900 Message-ID: <20261204100707.353846775@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Or Har-Toov [ Upstream commit 9c1adbe7fa6cbc02c25db2039532918acf846400 ] mlx5e_rep_update_hw_counters() adds transmitted_eth_multicast.packets to vport_rx_packets but does not add transmitted_eth_multicast.octets to vport_rx_bytes. As a result, Ethernet multicast sent by a VF/SF is counted in its representor's rx_packets but not in rx_bytes. Fix by adding transmitted_eth_multicast.octets to the vport_rx_bytes sum. Fixes: 64b68e369649 ("net/mlx5: Refactor and expand rep vport stat group") Signed-off-by: Or Har-Toov Reviewed-by: Maher Sanalla Signed-off-by: Tariq Toukan Link: https://patch.msgid.link/20261101065833.282261-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 4e299fa313422..98a3225a51ebf 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -221,6 +221,7 @@ static MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS(vport_rep) MLX5_GET_CTR(out, transmitted_ib_unicast.octets) + MLX5_GET_CTR(out, transmitted_eth_unicast.octets) + MLX5_GET_CTR(out, transmitted_ib_multicast.octets) + + MLX5_GET_CTR(out, transmitted_eth_multicast.octets) + MLX5_GET_CTR(out, transmitted_eth_broadcast.octets); rep_stats->vport_tx_bytes = -- 2.53.0