]> www.infradead.org Git - users/hch/configfs.git/commitdiff
net/mlx5e: SHAMPO, Add missing aggregate counter
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 8 Jul 2024 08:00:24 +0000 (11:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Jul 2024 01:59:35 +0000 (18:59 -0700)
When the rx_hds_nodata_packets/bytes counters were added, the aggregate
counters were omitted. This patch adds them.

Fixes: e95c5b9e8912 ("net/mlx5e: SHAMPO, Add header-only ethtool counters for header data split")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20240708080025.1593555-10-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c

index db1cac68292f39bbe14d01271a0fa07468baef9c..e7a3290a708a57fa636a011d2e5d9bb16d22fa76 100644 (file)
@@ -142,6 +142,8 @@ static const struct counter_desc sw_stats_desc[] = {
        { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_gro_bytes) },
        { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_gro_skbs) },
        { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_gro_large_hds) },
+       { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_hds_nodata_packets) },
+       { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_hds_nodata_bytes) },
        { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_ecn_mark) },
        { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_removed_vlan_packets) },
        { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_csum_unnecessary) },