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
wangwenhui
OpenXG-RAN
Commits
cf59e0d8
Commit
cf59e0d8
authored
Nov 08, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added notification messages for control delegation in dl_scheduler VSF
parent
83929d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
.../ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
+7
-2
No files found.
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
View file @
cf59e0d8
...
@@ -771,12 +771,15 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
...
@@ -771,12 +771,15 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
snprintf
(
lib_name
,
sizeof
(
lib_name
),
"/%s.so"
,
function_name
);
snprintf
(
lib_name
,
sizeof
(
lib_name
),
"/%s.so"
,
function_name
);
strcpy
(
target
,
local_cache
);
strcpy
(
target
,
local_cache
);
strcat
(
target
,
lib_name
);
strcat
(
target
,
lib_name
);
LOG_I
(
FLEXRAN_AGENT
,
"Opening pushed code: %s
\n
"
,
target
);
lib
=
dlopen
(
target
,
RTLD_NOW
);
lib
=
dlopen
(
target
,
RTLD_NOW
);
if
(
lib
==
NULL
)
{
if
(
lib
==
NULL
)
{
LOG_I
(
FLEXRAN_AGENT
,
"Could not load library
\n
"
);
goto
error
;
goto
error
;
}
}
LOG_I
(
FLEXRAN_AGENT
,
"Loading function: %s
\n
"
,
function_name
);
void
*
loaded_scheduler
=
dlsym
(
lib
,
function_name
);
void
*
loaded_scheduler
=
dlsym
(
lib
,
function_name
);
if
(
loaded_scheduler
)
{
if
(
loaded_scheduler
)
{
if
(
mac_agent_registered
[
mod_id
])
{
if
(
mac_agent_registered
[
mod_id
])
{
...
@@ -785,8 +788,10 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
...
@@ -785,8 +788,10 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
dlclose
(
agent_mac_xface
[
mod_id
]
->
dl_scheduler_loaded_lib
);
dlclose
(
agent_mac_xface
[
mod_id
]
->
dl_scheduler_loaded_lib
);
}
}
agent_mac_xface
[
mod_id
]
->
dl_scheduler_loaded_lib
=
lib
;
agent_mac_xface
[
mod_id
]
->
dl_scheduler_loaded_lib
=
lib
;
LOG_
D
(
ENB_APP
,
"Delegated control for DL UE scheduler succesfully
\n
"
);
LOG_
I
(
FLEXRAN_AGENT
,
"New DL UE scheduler: %s
\n
"
,
function_name
);
}
}
}
else
{
LOG_I
(
FLEXRAN_AGENT
,
"Scheduler could not be loaded
\n
"
);
}
}
return
0
;
return
0
;
...
...
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