File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
drivers/net/ethernet/mellanox/mlx4 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,10 @@ static bool use_prio;
149
149
module_param_named (use_prio , use_prio , bool , 0444 );
150
150
MODULE_PARM_DESC (use_prio , "Enable steering by VLAN priority on ETH ports (deprecated)" );
151
151
152
- int log_mtts_per_seg = ilog2 (MLX4_MTT_ENTRY_PER_SEG );
152
+ int log_mtts_per_seg = ilog2 (1 );
153
153
module_param_named (log_mtts_per_seg , log_mtts_per_seg , int , 0444 );
154
- MODULE_PARM_DESC (log_mtts_per_seg , "Log2 number of MTT entries per segment (1-7)" );
154
+ MODULE_PARM_DESC (log_mtts_per_seg , "Log2 number of MTT entries per segment "
155
+ "(0-7) (default: 0)" );
155
156
156
157
static int port_type_array [2 ] = {MLX4_PORT_TYPE_NONE , MLX4_PORT_TYPE_NONE };
157
158
static int arr_argc = 2 ;
@@ -4316,7 +4317,7 @@ static int __init mlx4_verify_params(void)
4316
4317
if (use_prio != 0 )
4317
4318
pr_warn ("mlx4_core: use_prio - obsolete module param, ignored\n" );
4318
4319
4319
- if ((log_mtts_per_seg < 1 ) || (log_mtts_per_seg > 7 )) {
4320
+ if ((log_mtts_per_seg < 0 ) || (log_mtts_per_seg > 7 )) {
4320
4321
pr_warn ("mlx4_core: bad log_mtts_per_seg: %d\n" ,
4321
4322
log_mtts_per_seg );
4322
4323
return -1 ;
Original file line number Diff line number Diff line change 84
84
MLX4_MIN_MGM_LOG_ENTRY_SIZE = 7 ,
85
85
MLX4_MAX_MGM_LOG_ENTRY_SIZE = 12 ,
86
86
MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE ) / 16 - 2 ),
87
- MLX4_MTT_ENTRY_PER_SEG = 8 ,
88
87
};
89
88
90
89
enum {
You can’t perform that action at this time.
0 commit comments