diff options
| author | songyanchao <[email protected]> | 2024-06-26 07:10:16 +0000 |
|---|---|---|
| committer | songyanchao <[email protected]> | 2024-06-26 07:10:16 +0000 |
| commit | d097519337436971dcd73ecf51d5c12a6b0fcd75 (patch) | |
| tree | 27cf53a3baac7632f6473effb6d42b561129058e | |
| parent | d78bcf4f82b40edc3de8391fac81ba56033434b5 (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.
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | service/src/core.c | 9 |
2 files changed, 10 insertions, 2 deletions
@@ -25,9 +25,10 @@ test/ptf_test/ptf_test /x64 /marsio1.VC.db .vscode/ +.cache/ .idea cmake-build-* cmake-build-* version.txt -Testing/
\ No newline at end of file +Testing/ 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 */ |
