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)
commit4f6626b0e140867fd6d5a2e9d4ceaef97f10f46a
treeb0221dcace65e27d73533675e09ca41cb0bb3e91
parent8e715cd613a1e872b9d918e912d90b399785761a
Revert "net/mlx5: Add retry mechanism to the command entry index allocation"

This reverts commit 410bd754cd73c4a2ac3856d9a03d7b08f9c906bf.

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: 410bd754cd73 ("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