summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2024-06-26 07:10:16 +0000
committersongyanchao <[email protected]>2024-06-26 07:10:16 +0000
commitd097519337436971dcd73ecf51d5c12a6b0fcd75 (patch)
tree27cf53a3baac7632f6473effb6d42b561129058e /service
parentd78bcf4f82b40edc3de8391fac81ba56033434b5 (diff)
✨ feat(TSG-21574): Add 'legacy_mem' argument to EAL section in config.v4.8.14-20240626
Add 'legacy_mem' argument to EAL section in config.
Diffstat (limited to 'service')
-rw-r--r--service/src/core.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/service/src/core.c b/service/src/core.c
index d896b33..df04aa1 100644
--- a/service/src/core.c
+++ b/service/src/core.c
@@ -497,7 +497,14 @@ static void sc_eal_init(struct sc_main * sc, const char * cmd)
WRITE_ARG("--single-file-segments");
}
- WRITE_ARG("--legacy-mem");
+ unsigned int legacy_mem = 0;
+ MESA_load_profile_uint_def(sc->local_cfgfile, "eal", "legacy_mem", &legacy_mem, 1);
+
+ if (legacy_mem > 0)
+ {
+ WRITE_ARG("--legacy-mem");
+ }
+
devmgr_eal_args_generate(sc->devmgr_main, eal_argv, &eal_argc, MR_SERVICE_MAX_EAL_ARGC);
/* Force AVX512 */