Skip to content

Commit 0507f2c

Browse files
shayshyiSaeed Mahameed
authored and
Saeed Mahameed
committed
net/mlx5: Honor user input for migratable port fn attr
Currently, whenever a user is setting migratable port fn attr, the driver is always turn migratable capability on. Fix it by honor the user input Fixes: e5b9642 ("net/mlx5: E-Switch, Implement devlink port function cmds to control migratable") Signed-off-by: Shay Drory <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent e5bcb75 commit 0507f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4196,7 +4196,7 @@ int mlx5_devlink_port_fn_migratable_set(struct devlink_port *port, bool enable,
41964196
}
41974197

41984198
hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability);
4199-
MLX5_SET(cmd_hca_cap_2, hca_caps, migratable, 1);
4199+
MLX5_SET(cmd_hca_cap_2, hca_caps, migratable, enable);
42004200

42014201
err = mlx5_vport_set_other_func_cap(esw->dev, hca_caps, vport->vport,
42024202
MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2);

0 commit comments

Comments
 (0)