Commit 476681f
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: f62b8bb ("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>1 parent f676669 commit 476681f
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4052 | 4052 | | |
4053 | 4053 | | |
4054 | 4054 | | |
| 4055 | + | |
| 4056 | + | |
4055 | 4057 | | |
4056 | 4058 | | |
4057 | 4059 | | |
| |||
4068 | 4070 | | |
4069 | 4071 | | |
4070 | 4072 | | |
4071 | | - | |
4072 | | - | |
| 4073 | + | |
| 4074 | + | |
4073 | 4075 | | |
4074 | | - | |
| 4076 | + | |
4075 | 4077 | | |
4076 | 4078 | | |
4077 | 4079 | | |
4078 | 4080 | | |
4079 | | - | |
| 4081 | + | |
4080 | 4082 | | |
4081 | | - | |
4082 | | - | |
4083 | | - | |
4084 | | - | |
4085 | | - | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
4086 | 4088 | | |
4087 | 4089 | | |
4088 | 4090 | | |
| |||
0 commit comments