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
wangjie
OpenXG-RAN
Commits
b66e0bb5
Commit
b66e0bb5
authored
Mar 19, 2020
by
Kuroiwa Kenichi
Committed by
Haruki NAOI
Mar 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize scheduled_ul_bytes
(cherry picked from commit 4a18e26f8c1dfb80a5af2fac4104b06b648a598c)
parent
280101d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
+12
-3
No files found.
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
View file @
b66e0bb5
...
...
@@ -3152,7 +3152,10 @@ void ulsch_scheduler_pre_ue_select_fairRR(
//
int
bytes_to_schedule
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
estimated_ul_buffer
-
UE_list
->
UE_template
[
CC_id
][
UE_id
].
scheduled_ul_bytes
;
if
(
bytes_to_schedule
<
0
)
bytes_to_schedule
=
0
;
if
(
bytes_to_schedule
<
0
)
{
bytes_to_schedule
=
0
;
UE_list
->
UE_template
[
CC_id
][
UE_id
].
scheduled_ul_bytes
=
0
;
}
if
(
UE_id
>
last_ulsch_ue_id
[
CC_id
]
&&
((
ulsch_ue_select
[
CC_id
].
ue_num
+
ue_first_num
[
CC_id
])
<
ulsch_ue_max_num
[
CC_id
])
)
{
if
(
bytes_to_schedule
>
0
)
{
...
...
@@ -3541,7 +3544,10 @@ void ulsch_scheduler_pre_processor_fairRR(module_id_t module_idP,
if
(
ulsch_ue_select
[
CC_id
].
list
[
ulsch_ue_num
].
ue_priority
==
SCH_UL_FIRST
)
{
int
bytes_to_schedule
=
UE_template
->
estimated_ul_buffer
-
UE_template
->
scheduled_ul_bytes
;
if
(
bytes_to_schedule
<
0
)
bytes_to_schedule
=
0
;
if
(
bytes_to_schedule
<
0
)
{
bytes_to_schedule
=
0
;
UE_template
->
scheduled_ul_bytes
=
0
;
}
if
(
ulsch_ue_select
[
CC_id
].
list
[
ulsch_ue_num
].
ul_total_buffer
>
0
)
{
rb_table_index
=
2
;
...
...
@@ -3904,7 +3910,10 @@ void schedule_ulsch_rnti_fairRR(module_id_t module_idP,
module_idP
,
frameP
,
subframeP
,
harq_pid
,
UE_id
,
rnti
,
CC_id
,
aggregation
,
N_RB_UL
);
int
bytes_to_schedule
=
UE_template
->
estimated_ul_buffer
-
UE_template
->
scheduled_ul_bytes
;
if
(
bytes_to_schedule
<
0
)
bytes_to_schedule
=
0
;
if
(
bytes_to_schedule
<
0
)
{
bytes_to_schedule
=
0
;
UE_template
->
scheduled_ul_bytes
=
0
;
}
RC
.
eNB
[
module_idP
][
CC_id
]
->
pusch_stats_BO
[
UE_id
][(
frameP
*
10
)
+
subframeP
]
=
bytes_to_schedule
;
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_UE0_BO
,
RC
.
eNB
[
module_idP
][
CC_id
]
->
pusch_stats_BO
[
UE_id
][(
frameP
*
10
)
+
subframeP
]);
...
...
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