X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Fapp%2Fsrc%2Fconfig.c;h=88bd6497a6f82d877875f07d1b5001cd5a73b5f2;hp=f000a460e7cdf86785f881461f6d8f98a2808258;hb=3857f3f735f44c156ba261db0fdf10e2f4011510;hpb=afaa7b205ebe18aaa4ddb2cea457c647df2a3444 diff --git a/fhi_lib/app/src/config.c b/fhi_lib/app/src/config.c index f000a46..88bd649 100644 --- a/fhi_lib/app/src/config.c +++ b/fhi_lib/app/src/config.c @@ -29,6 +29,7 @@ #include "debug.h" #include +#include #define MAX_LINE_SIZE 512 /* Configuration file maximum supported line length */ @@ -67,6 +68,11 @@ #define KEY_MTU_SIZE "MTUSize" #define KEY_IO_CORE "ioCore" +#define KEY_SYSTEM_CORE "systemCore" +#define KEY_PKT_PROC_CORE "pktProcCore" +#define KEY_PKT_AUX_CORE "pktAuxCore" +#define KEY_TIMING_CORE "timingCore" + #define KEY_INSTANCE_ID "instanceId" #define KEY_LLS_CU_MAC "llsCUMac" @@ -244,6 +250,18 @@ static int fillConfigStruct(RuntimeConfig *config, const char *key, const char * } else if (strcmp(key, KEY_IO_CORE) == 0) { config->io_core = atoi(value); printf("io_core %d\n", config->io_core); + } else if (strcmp(key, KEY_SYSTEM_CORE) == 0) { + config->system_core = atoi(value); + printf("system_core -c %" PRIx64 "\n", config->system_core); + } else if (strcmp(key, KEY_PKT_PROC_CORE) == 0) { + config->pkt_proc_core = atoi(value); + printf("pkt_proc_core -c %" PRIx64 "\n", config->pkt_proc_core); + } else if (strcmp(key, KEY_PKT_AUX_CORE) == 0) { + config->pkt_aux_core = atoi(value); + printf("pkt_aux_core -c %" PRIx64 "\n", config->pkt_aux_core); + } else if (strcmp(key, KEY_TIMING_CORE) == 0) { + config->timing_core = atoi(value); + printf("timing_core -c %" PRIx64 "\n", config->timing_core); }else if (strcmp(key, KEY_INSTANCE_ID) == 0) { config->instance_id = atoi(value); printf("instance_id %d\n", config->instance_id);