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
6b3dd871
Commit
6b3dd871
authored
May 17, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexRAN: set values of removed slices to 0
parent
088b1d5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+2
-0
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+0
-4
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+0
-4
No files found.
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
6b3dd871
...
...
@@ -1487,6 +1487,7 @@ int flexran_remove_dl_slice(mid_t mod_id, int slice_idx)
/* move last element to the position of the removed one */
if
(
slice_idx
!=
sli
->
n_dl
)
memcpy
(
&
sli
->
dl
[
slice_idx
],
&
sli
->
dl
[
sli
->
n_dl
],
sizeof
(
sli
->
dl
[
sli
->
n_dl
]));
memset
(
&
sli
->
dl
[
sli
->
n_dl
],
0
,
sizeof
(
sli
->
dl
[
sli
->
n_dl
]));
/* all UEs that have been in the old slice are put into slice index 0 */
int
*
assoc_list
=
RC
.
mac
[
mod_id
]
->
UE_list
.
assoc_dl_slice_idx
;
...
...
@@ -1763,6 +1764,7 @@ int flexran_remove_ul_slice(mid_t mod_id, int slice_idx)
/* move last element to the position of the removed one */
if
(
slice_idx
!=
sli
->
n_ul
)
memcpy
(
&
sli
->
ul
[
slice_idx
],
&
sli
->
ul
[
sli
->
n_ul
],
sizeof
(
sli
->
ul
[
sli
->
n_ul
]));
memset
(
&
sli
->
ul
[
sli
->
n_ul
],
0
,
sizeof
(
sli
->
ul
[
sli
->
n_ul
]));
/* all UEs that have been in the old slice are put into slice index 0 */
int
*
assoc_list
=
RC
.
mac
[
mod_id
]
->
UE_list
.
assoc_ul_slice_idx
;
...
...
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
6b3dd871
...
...
@@ -418,10 +418,6 @@ schedule_dlsch(module_id_t module_idP, frame_t frameP, sub_frame_t subframeP, in
sli
->
avg_pct_dl
=
1
.
0
/
sli
->
n_dl
;
//sli->slice_counter = sli->n_dl;
// reset the slice percentage for inactive slices
for
(
i
=
sli
->
n_dl
;
i
<
MAX_NUM_SLICES
;
i
++
)
{
sli
->
dl
[
i
].
pct
=
0
;
}
for
(
i
=
0
;
i
<
sli
->
n_dl
;
i
++
)
{
if
(
sli
->
dl
[
i
].
pct
<
0
)
{
LOG_W
(
MAC
,
"[eNB %d][SLICE %d][DL] frame %d subframe %d: invalid percentage %f. resetting to zero"
,
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
6b3dd871
...
...
@@ -1043,10 +1043,6 @@ schedule_ulsch(module_id_t module_idP, frame_t frameP,
sli
->
tot_pct_ul
=
0
;
sli
->
avg_pct_ul
=
1
.
0
/
sli
->
n_ul
;
// reset the slice percentage for inactive slices
for
(
i
=
sli
->
n_ul
;
i
<
MAX_NUM_SLICES
;
i
++
)
{
sli
->
ul
[
i
].
pct
=
0
;
}
for
(
i
=
0
;
i
<
sli
->
n_ul
;
i
++
)
{
if
(
sli
->
ul
[
i
].
pct
<
0
){
LOG_W
(
MAC
,
...
...
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