Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
af89a6b7
Commit
af89a6b7
authored
Jun 17, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configurable Default Scheduler DL Algo
parent
fe7236d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
openair2/ENB_APP/MACRLC_paramdef.h
openair2/ENB_APP/MACRLC_paramdef.h
+3
-0
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+10
-0
No files found.
openair2/ENB_APP/MACRLC_paramdef.h
View file @
af89a6b7
...
...
@@ -58,6 +58,7 @@
#define CONFIG_STRING_MACRLC_SCHED_MODE "scheduler_mode"
#define CONFIG_MACRLC_PUSCH10xSNR "puSch10xSnr"
#define CONFIG_MACRLC_PUCCH10xSNR "puCch10xSnr"
#define CONFIG_STRING_MACRLC_DEFAULT_SCHED_DL_ALGO "default_sched_dl_algo"
/*-------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* MacRLC configuration parameters */
...
...
@@ -84,6 +85,7 @@
{CONFIG_STRING_MACRLC_SCHED_MODE, NULL, 0, strptr:NULL, defstrval:"default", TYPE_STRING, 0}, \
{CONFIG_MACRLC_PUSCH10xSNR, NULL, 0, iptr:NULL, defintval:200, TYPE_INT, 0}, \
{CONFIG_MACRLC_PUCCH10xSNR, NULL, 0, iptr:NULL, defintval:200, TYPE_INT, 0}, \
{CONFIG_STRING_MACRLC_DEFAULT_SCHED_DL_ALGO, NULL, 0, strptr:NULL, defstrval:"round_robin_dl", TYPE_STRING, 0}, \
}
#define MACRLC_CC_IDX 0
#define MACRLC_TRANSPORT_N_PREFERENCE_IDX 1
...
...
@@ -105,6 +107,7 @@
#define MACRLC_SCHED_MODE_IDX 17
#define MACRLC_PUSCH10xSNR_IDX 18
#define MACRLC_PUCCH10xSNR_IDX 19
#define MACRLC_DEFAULT_SCHED_DL_ALGO_IDX 20
/*---------------------------------------------------------------------------------------------------------------------------------------------------------*/
#endif
openair2/ENB_APP/enb_config.c
View file @
af89a6b7
...
...
@@ -29,6 +29,7 @@
#include <string.h>
#include <inttypes.h>
#include <dlfcn.h>
#include "common/utils/LOG/log.h"
#include "assertions.h"
...
...
@@ -260,6 +261,15 @@ void RCconfig_macrlc(int macrlc_has_f1[MAX_MAC_INST]) {
global_scheduler_mode
=
SCHED_MODE_DEFAULT
;
printf
(
"sched mode = default %d [%s]
\n
"
,
global_scheduler_mode
,
*
(
MacRLC_ParamList
.
paramarray
[
j
][
MACRLC_SCHED_MODE_IDX
].
strptr
));
}
char
*
s
=
*
MacRLC_ParamList
.
paramarray
[
j
][
MACRLC_DEFAULT_SCHED_DL_ALGO_IDX
].
strptr
;
void
*
d
=
dlsym
(
NULL
,
s
);
AssertFatal
(
d
,
"%s(): no default scheduler DL algo '%s' found
\n
"
,
__func__
,
s
);
// release default, add new
RC
.
mac
[
j
]
->
dl_algo
.
unset
(
&
RC
.
mac
[
j
]
->
dl_algo
.
data
);
RC
.
mac
[
j
]
->
dl_algo
=
*
(
default_sched_dl_algo_t
*
)
d
;
RC
.
mac
[
j
]
->
dl_algo
.
data
=
RC
.
mac
[
j
]
->
dl_algo
.
setup
();
LOG_I
(
ENB_APP
,
"using default scheduler DL algo '%s'
\n
"
,
RC
.
mac
[
j
]
->
dl_algo
.
name
);
}
// j=0..num_inst
}
/*else {// MacRLC_ParamList.numelt > 0 // ignore it
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment