net/mlx5e: Add missing Ethernet multicast octets to vport_rx_bytes sum
Subsystems (5)
Tariq Toukan
maintainerPATCH 1/1 net/mlx5e: Add missing Ethernet multicast octets to vport_rx_bytes sum
From: Or Har-Toov <[email protected]>
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.
--- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +1 -0
@@ -238,6 +238,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 =
base-commit: cb284914e749388eef402938bdb3115fe1f6d337
Signature · 1 line
2.44.0
[email protected]
AI reviewThis is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical (e.g. found by code inspection). If it was triggered please include the symptoms, like the stack trace or error messages.
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Sun, 1 Nov 2026 08:58:33 +0200 you wrote:
From: Or Har-Toov <[email protected]>
mlx5e_rep_update_hw_counters()adds transmitted_eth_multicast.packets tovport_rx_packetsbut does not add transmitted_eth_multicast.octets tovport_rx_bytes. As a result, Ethernet multicast sent by a VF/SF is counted in its representor'srx_packetsbut not inrx_bytes.[...]
Here is the summary with links:
- [net] net/mlx5e: Add missing Ethernet multicast octets to vport_rx_bytes sum
https://git.kernel.org/netdev/net/c/9c1adbe7fa6c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html