]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Introduce and use opcode getter in command interface
authorTariq Toukan <tariqt@nvidia.com>
Thu, 5 Jan 2023 07:45:24 +0000 (09:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:38:55 +0000 (12:38 +0000)
commitbd6e091629103f1ceaedbd9d41f68e1c5b2731b9
tree7bcbe3b1018d68567893436768c4596baf0eeba4
parent0f5de95fa266163a44c32bb7e5ad562725d04d3b
net/mlx5: Introduce and use opcode getter in command interface

[ Upstream commit 7cb5eb937231663d11f7817e366f6f86a142d6d3 ]

Introduce an opcode getter in the FW command interface, and use it.
Initialize the entry's opcode field early in cmd_alloc_ent() and use it
when possible.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Stable-dep-of: 8f5100da56b3 ("net/mlx5e: Fix a race in command alloc flow")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c