]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net/mlx5: Add retry mechanism to the command entry index allocation"
authorMoshe Shemesh <moshe@nvidia.com>
Sun, 5 Dec 2021 09:20:59 +0000 (11:20 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:55:42 +0000 (16:55 -0800)
commit8ec6160ec51dd0bf4d796ea4efd4f606356d4b9f
treeb0221dcace65e27d73533675e09ca41cb0bb3e91
parent1bea202da23874eedaefe3bd48380c520d458cc1
Revert "net/mlx5: Add retry mechanism to the command entry index allocation"

This reverts commit 79c9232b2cee4d3e1f41ad0e7c2cdbf3d79a454c.

The reverted commit had added a retry mechanism to the command entry
index allocation. The previous patch ensures that there is a free
command entry index once the command work handler holds the command
semaphore. Thus the retry mechanism is not needed.

Fixes: 79c9232b2cee ("net/mlx5: Add retry mechanism to the command entry index allocation")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Eran Ben Elisha <eranbe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c