]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: Fix peer pf disable hca command
authorBodong Wang <bodong@mellanox.com>
Mon, 29 Apr 2019 14:56:18 +0000 (09:56 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 17 May 2019 20:16:48 +0000 (13:16 -0700)
The command was mistakenly using enable_hca in embedded CPU field.

Fixes: bb22f4cb4593 (net/mlx5: Update enable HCA dependency)
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reported-by: Alex Rosenbaum <alexr@mellanox.com>
Signed-off-by: Alex Rosenbaum <alexr@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/ecpf.c

index 4746f2d28fb67b73f7626dfc1aed3cd38da1e9e0..0ccd6d40baf718d51ac74e8de69f909756907a6d 100644 (file)
@@ -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));
 }