Skip to content

Commit f9c895a

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5: Update op_mode to op_mod for port selection
To be consistent with the other enum keys use OP_MOD instead of OP_MODE. Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Maor Dickman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 38d9a74 commit f9c895a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ static int handle_hca_cap_port_selection(struct mlx5_core_dev *dev,
717717
MLX5_ST_SZ_BYTES(port_selection_cap));
718718
MLX5_SET(port_selection_cap, set_hca_cap, port_select_flow_table_bypass, 1);
719719

720-
err = set_caps(dev, set_ctx, MLX5_SET_HCA_CAP_OP_MODE_PORT_SELECTION);
720+
err = set_caps(dev, set_ctx, MLX5_SET_HCA_CAP_OP_MOD_PORT_SELECTION);
721721

722722
return err;
723723
}

include/linux/mlx5/mlx5_ifc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ enum {
6969
MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3,
7070
MLX5_SET_HCA_CAP_OP_MOD_ROCE = 0x4,
7171
MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2 = 0x20,
72-
MLX5_SET_HCA_CAP_OP_MODE_PORT_SELECTION = 0x25,
72+
MLX5_SET_HCA_CAP_OP_MOD_PORT_SELECTION = 0x25,
7373
};
7474

7575
enum {

0 commit comments

Comments
 (0)