Commit dd064867 authored by Bodong Wang's avatar Bodong Wang Committed by Saeed Mahameed

net/mlx5: Fix peer pf disable hca command

The command was mistakenly using enable_hca in embedded CPU field.

Fixes: 22e939a9 (net/mlx5: Update enable HCA dependency)
Signed-off-by: default avatarBodong Wang <bodong@mellanox.com>
Reported-by: default avatarAlex Rosenbaum <alexr@mellanox.com>
Signed-off-by: default avatarAlex Rosenbaum <alexr@mellanox.com>
Reviewed-by: default avatarDaniel Jurgens <danielj@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 02f3afd9
......@@ -26,7 +26,7 @@ static int mlx5_peer_pf_disable_hca(struct mlx5_core_dev *dev)
MLX5_SET(disable_hca_in, in, opcode, MLX5_CMD_OP_DISABLE_HCA);
MLX5_SET(disable_hca_in, in, function_id, 0);
MLX5_SET(enable_hca_in, in, embedded_cpu_function, 0);
MLX5_SET(disable_hca_in, in, embedded_cpu_function, 0);
return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment