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)
162162
163163
164164 /* 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 ;
169167 }
170168
171169#if RTE_VER_YEAR < 18
@@ -270,11 +268,9 @@ int network_thread_init(struct dataplane_context *ctx)
270268 }
271269
272270 /* 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 ;
278274 }
279275 start_done = 1 ;
280276 }
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ int main(int argc, char *argv[])
8181 goto error_exit ;
8282 }
8383 fp_cores_max = config .fp_cores_max ;
84+ if (!config .fp_autoscale ) {
85+ fp_cores_cur = fp_cores_max ;
86+ }
8487
8588 /* allocate shared memory before dpdk grabs all huge pages */
8689 if (shm_preinit () != 0 ) {
You can’t perform that action at this time.
0 commit comments