diff options
| author | 2021-10-31 18:31:02 +0200 | |
|---|---|---|
| committer | 2021-11-30 22:35:06 -0800 | |
| commit | 8c8cf0382257b28378eeff535150c087a653ca19 (patch) | |
| tree | 8b2e5979a29baf2bc042e794e6cf844579871d7f /tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com | |
| parent | net/mlx5: Fix access to a non-supported register (diff) | |
| download | linux-dev-8c8cf0382257b28378eeff535150c087a653ca19.tar.xz linux-dev-8c8cf0382257b28378eeff535150c087a653ca19.zip | |
net/mlx5e: SHAMPO, Fix constant expression result
mlx5e_build_shampo_hd_umr uses counters i and index incorrectly
as unsigned, thus the err state err_unmap could stuck in endless loop.
Change i to int to solve the first issue.
Reduce index check to solve the second issue, the caller function
validates that index could not rotate.
Fixes: 64509b052525 ("net/mlx5e: Add data path for SHAMPO feature")
Signed-off-by: Ben Ben-Ishay <benishay@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
