Skip to content

Commit 45d2748

Browse files
init flow steering even when autoscale is disabled
Signed-off-by: Rajath Shashidhara <rajaths@cs.utexas.edu>
1 parent d3926ba commit 45d2748

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tas/fast/network.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

tas/tas.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)