]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add missing increment of count
authorLama Kayal <lkayal@nvidia.com>
Mon, 21 Feb 2022 10:26:11 +0000 (12:26 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Feb 2022 00:08:19 +0000 (16:08 -0800)
commit34130781846734bcb681057b32612374533443dc
tree32080e7068b50248974b0fab60332d0b7fd502ca
parentdd7177d0c636af32abf3e237b272626aaea366ea
net/mlx5e: Add missing increment of count

Add mistakenly missing increment of count variable when looping over
output buffer in mlx5e_self_test().

This resolves the issue of garbage values output when querying with self
test via ethtool.

before:
$ ethtool -t eth2
The test result is PASS
The test extra info:
Link Test        0
Speed Test       1768697188
Health Test      758528120
Loopback Test    3288687

after:
$ ethtool -t eth2
The test result is PASS
The test extra info:
Link Test        0
Speed Test       0
Health Test      0
Loopback Test    0

Fixes: f3b4d0f5b5d1 ("net/mlx5e: loopback test is not supported in switchdev mode")
Signed-off-by: Lama Kayal <lkayal@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c