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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 11 Jan 2023 05:24:42 +0000 (21:24 -0800)
commit7cb5eb937231663d11f7817e366f6f86a142d6d3
treefc317e0f4383b16bd920485797e94bc0c865f2c3
parentfe998a3c77b9f989a30a2a01fb00d3729a6d53a4
net/mlx5: Introduce and use opcode getter in command interface

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>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c