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
alex037yang
OpenXG-RAN
Commits
604ec25a
Commit
604ec25a
authored
May 03, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve soft-restarting messages
parent
d24e17f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
openair2/ENB_APP/enb_app.c
openair2/ENB_APP/enb_app.c
+5
-3
No files found.
openair2/ENB_APP/enb_app.c
View file @
604ec25a
...
@@ -335,6 +335,8 @@ void handle_reconfiguration(module_id_t mod_id)
...
@@ -335,6 +335,8 @@ void handle_reconfiguration(module_id_t mod_id)
clock_gettime
(
CLOCK_MONOTONIC
,
&
start
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
start
);
flexran_agent_info_t
*
flexran
=
RC
.
flexran
[
mod_id
];
flexran_agent_info_t
*
flexran
=
RC
.
flexran
[
mod_id
];
LOG_N
(
ENB_APP
,
"lte-softmodem soft-restart requested
\n
"
);
if
(
ENB_WAIT
==
flexran
->
node_ctrl_state
)
{
if
(
ENB_WAIT
==
flexran
->
node_ctrl_state
)
{
/* this is already waiting, just release */
/* this is already waiting, just release */
pthread_mutex_lock
(
&
flexran
->
mutex_node_ctrl
);
pthread_mutex_lock
(
&
flexran
->
mutex_node_ctrl
);
...
@@ -352,7 +354,7 @@ void handle_reconfiguration(module_id_t mod_id)
...
@@ -352,7 +354,7 @@ void handle_reconfiguration(module_id_t mod_id)
/* node_ctrl_state should have value ENB_MAKE_WAIT only if this method is not
/* node_ctrl_state should have value ENB_MAKE_WAIT only if this method is not
* executed by the FlexRAN thread */
* executed by the FlexRAN thread */
if
(
ENB_MAKE_WAIT
==
flexran
->
node_ctrl_state
)
{
if
(
ENB_MAKE_WAIT
==
flexran
->
node_ctrl_state
)
{
LOG_
I
(
ENB_APP
,
" * eNB %d: Waiting for FlexRAN RTController command *
\n
"
,
mod_id
);
LOG_
N
(
ENB_APP
,
" * eNB %d: Waiting for FlexRAN RTController command *
\n
"
,
mod_id
);
pthread_mutex_lock
(
&
flexran
->
mutex_node_ctrl
);
pthread_mutex_lock
(
&
flexran
->
mutex_node_ctrl
);
flexran
->
node_ctrl_state
=
ENB_WAIT
;
flexran
->
node_ctrl_state
=
ENB_WAIT
;
while
(
ENB_NORMAL_OPERATION
!=
flexran
->
node_ctrl_state
)
while
(
ENB_NORMAL_OPERATION
!=
flexran
->
node_ctrl_state
)
...
@@ -361,7 +363,7 @@ void handle_reconfiguration(module_id_t mod_id)
...
@@ -361,7 +363,7 @@ void handle_reconfiguration(module_id_t mod_id)
}
}
if
(
restart_L1L2
(
mod_id
)
<
0
)
{
if
(
restart_L1L2
(
mod_id
)
<
0
)
{
LOG_
F
(
ENB_APP
,
"can not restart, killing lte-softmodem
\n
"
);
LOG_
E
(
ENB_APP
,
"can not restart, killing lte-softmodem
\n
"
);
itti_terminate_tasks
(
TASK_PHY_ENB
);
itti_terminate_tasks
(
TASK_PHY_ENB
);
return
;
return
;
}
}
...
@@ -374,5 +376,5 @@ void handle_reconfiguration(module_id_t mod_id)
...
@@ -374,5 +376,5 @@ void handle_reconfiguration(module_id_t mod_id)
end
.
tv_sec
-=
1
;
end
.
tv_sec
-=
1
;
end
.
tv_nsec
=
end
.
tv_nsec
-
start
.
tv_nsec
+
1000000000
;
end
.
tv_nsec
=
end
.
tv_nsec
-
start
.
tv_nsec
+
1000000000
;
}
}
LOG_
I
(
ENB_APP
,
"lte-softmodem restart succeeded in %ld.%ld s
\n
"
,
end
.
tv_sec
,
end
.
tv_nsec
/
1000000
);
LOG_
N
(
ENB_APP
,
"lte-softmodem restart succeeded in %ld.%ld s
\n
"
,
end
.
tv_sec
,
end
.
tv_nsec
/
1000000
);
}
}
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