Hi,
This series by Gal extends the set of counters reported in netdev stats,
by adding:
- hw_gso_packets/bytes
- RX HW-GRO stats
- TX csum_none
- TX queue stop/wake
It also aligns the tso_bytes/tso_inner_bytes counters with the netdev
stats API and virtio spec definition.
Regards,
Tariq
---
V3:
- Add tso_bytes/tso_inner_bytes patch.
- Drop RX csum patch from the series.
- Reduce TX csum patch to csum_none only.
V2: https://lore.kernel.org/all/20260309095519.1854805-1-tariqt@nvidia.com/
V1: https://lore.kernel.org/all/20260204193315.1722983-1-tariqt@nvidia.com/
Gal Pressman (5):
net/mlx5e: Count full skb length in TSO byte counters
net/mlx5e: Report hw_gso_packets and hw_gso_bytes netdev stats
net/mlx5e: Report RX HW-GRO netdev stats
net/mlx5e: Report TX csum_none netdev stat
net/mlx5e: Report stop and wake TX queue stats
.../net/ethernet/mellanox/mlx5/core/en_main.c | 42 +++++++++++++++++++
.../net/ethernet/mellanox/mlx5/core/en_tx.c | 4 +-
2 files changed, 44 insertions(+), 2 deletions(-)
base-commit: 98878ed91b68a3150126fccef125ee7b1bb86ab2
--
2.44.0
From: Gal Pressman <redacted>
Report RX hardware GRO statistics via the netdev queue stats API by
mapping the existing gro_packets, gro_bytes and gro_skbs counters to the
hw_gro_wire_packets, hw_gro_wire_bytes and hw_gro_packets fields.
Signed-off-by: Gal Pressman <redacted>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -5545,6 +5553,9 @@ static void mlx5e_get_base_stats(struct net_device *dev,rx->packets+=rx_i.packets;rx->bytes+=rx_i.bytes;rx->alloc_fail+=rx_i.alloc_fail;+rx->hw_gro_packets+=rx_i.hw_gro_packets;+rx->hw_gro_wire_packets+=rx_i.hw_gro_wire_packets;+rx->hw_gro_wire_bytes+=rx_i.hw_gro_wire_bytes;}/* always report PTP RX stats from base as there is no
From: Gal Pressman <redacted>
The tso_bytes and tso_inner_bytes counters currently subtract the header
length from skb->len, counting only the payload. This is confusing and
doesn't align with the behavior of other _bytes counters in the driver.
Report the full skb length to align with this expectation.
This also makes our behavior consistent with the netdev stats API and
virtio spec definition.
Signed-off-by: Gal Pressman <redacted>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Gal Pressman <redacted>
Report TX queue stop and wake statistics via the netdev queue stats API
by mapping the existing stopped and wake counters to the stop and wake
fields.
Signed-off-by: Gal Pressman <redacted>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 9 +++++++++
1 file changed, 9 insertions(+)
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:
On Mon, 4 May 2026 21:36:59 +0300 you wrote:
Hi,
This series by Gal extends the set of counters reported in netdev stats,
by adding:
- hw_gso_packets/bytes
- RX HW-GRO stats
- TX csum_none
- TX queue stop/wake
[...]