File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,8 @@ int network_init(unsigned n_threads)
162
162
163
163
164
164
/* workaround for mlx5. */
165
- if (config .fp_autoscale ) {
166
- if (reta_mlx5_resize () != 0 ) {
167
- goto error_exit ;
168
- }
165
+ if (reta_mlx5_resize () != 0 ) {
166
+ goto error_exit ;
169
167
}
170
168
171
169
#if RTE_VER_YEAR < 18
@@ -270,11 +268,9 @@ int network_thread_init(struct dataplane_context *ctx)
270
268
}
271
269
272
270
/* setting up RETA failed */
273
- if (config .fp_autoscale ) {
274
- if (reta_setup () != 0 ) {
275
- fprintf (stderr , "RETA setup failed\n" );
276
- goto error_tx_queue ;
277
- }
271
+ if (reta_setup () != 0 ) {
272
+ fprintf (stderr , "RETA setup failed\n" );
273
+ goto error_tx_queue ;
278
274
}
279
275
start_done = 1 ;
280
276
}
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ int main(int argc, char *argv[])
81
81
goto error_exit ;
82
82
}
83
83
fp_cores_max = config .fp_cores_max ;
84
+ if (!config .fp_autoscale ) {
85
+ fp_cores_cur = fp_cores_max ;
86
+ }
84
87
85
88
/* allocate shared memory before dpdk grabs all huge pages */
86
89
if (shm_preinit () != 0 ) {
You can’t perform that action at this time.
0 commit comments