]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Account for netdev stats in ndo_get_stats64
authorGal Pressman <gal@nvidia.com>
Mon, 26 Jan 2026 07:14:55 +0000 (09:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Jan 2026 02:03:42 +0000 (18:03 -0800)
commit476681f10cc1e0e56e26856684e75d4678b072b2
treecfb56e0b5d3eb66c0099fbdf01049fe1b69ea7f2
parentf67666938ae626cbda63fbf5176b3583c07e7124
net/mlx5e: Account for netdev stats in ndo_get_stats64

The driver's ndo_get_stats64 callback is only reporting mlx5 counters,
without accounting for the netdev stats, causing errors from the network
stack to be invisible in statistics.

Add netdev_stats_to_stats64() call to first populate the counters, then
add mlx5 counters on top, ensuring both are accounted for (where
appropriate).

Fixes: f62b8bb8f2d3 ("net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1769411695-18820-4-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c