Skip to content

Commit 73c968f

Browse files
shayshyiBrian Maly
authored andcommitted
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]> Orabug: 35622106 (cherry picked from commit 0507f2c) cherry-pick-repo=kernel/git/torvalds/linux.git unmodified-from-upstream: 0507f2c Signed-off-by: Mikhael Goikhman <[email protected]> Signed-off-by: Qing Huang <[email protected]> Reviewed-by: Devesh Sharma <[email protected]> Signed-off-by: Brian Maly <[email protected]>
1 parent 66cdb53 commit 73c968f

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4200,7 +4200,7 @@ int mlx5_devlink_port_fn_migratable_set(struct devlink_port *port, bool enable,
42004200
}
42014201

42024202
hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability);
4203-
MLX5_SET(cmd_hca_cap_2, hca_caps, migratable, 1);
4203+
MLX5_SET(cmd_hca_cap_2, hca_caps, migratable, enable);
42044204

42054205
err = mlx5_vport_set_other_func_cap(esw->dev, hca_caps, vport->vport,
42064206
MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2);

0 commit comments

Comments
 (0)