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
4eb1a8b8
Commit
4eb1a8b8
authored
Mar 17, 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 b0d6c5150db520bd7840d1604c3f82a0b59bc218)
parent
6cd3bbf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
+4
-1
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+8
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
View file @
4eb1a8b8
...
...
@@ -3253,7 +3253,10 @@ void ulsch_scheduler_pre_ue_select_fairRR(
UE_sched_ctl
=
&
UE_list
->
UE_sched_ctrl
[
UE_id
];
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
;
}
rrc_status
=
mac_eNB_get_rrc_status
(
module_idP
,
rnti
);
if
(
(
bytes_to_schedule
>
0
)
||
(
UE_list
->
UE_template
[
CC_id
][
UE_id
].
ul_SR
>
0
)
||
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
4eb1a8b8
...
...
@@ -548,6 +548,7 @@ rx_sdu(const module_id_t enb_mod_idP,
UE_template_ptr
->
ul_buffer_info
[
LCGID1
]
+
UE_template_ptr
->
ul_buffer_info
[
LCGID2
]
+
UE_template_ptr
->
ul_buffer_info
[
LCGID3
];
UE_template_ptr
->
scheduled_ul_bytes
=
0
;
RC
.
eNB
[
enb_mod_idP
][
CC_idP
]
->
pusch_stats_bsr
[
UE_id
][(
frameP
*
10
)
+
subframeP
]
=
(
payload_ptr
[
0
]
&
0x3f
);
...
...
@@ -595,6 +596,7 @@ rx_sdu(const module_id_t enb_mod_idP,
UE_template_ptr
->
ul_buffer_info
[
LCGID1
]
+
UE_template_ptr
->
ul_buffer_info
[
LCGID2
]
+
UE_template_ptr
->
ul_buffer_info
[
LCGID3
];
UE_template_ptr
->
scheduled_ul_bytes
=
0
;
LOG_D
(
MAC
,
"[eNB %d] CC_id %d MAC CE_LCID %d: Received long BSR. Size is LCGID0 = %u LCGID1 = %u LCGID2 = %u LCGID3 = %u
\n
"
,
enb_mod_idP
,
...
...
@@ -805,6 +807,9 @@ rx_sdu(const module_id_t enb_mod_idP,
UE_template_ptr
->
ul_buffer_info
[
1
]
+
UE_template_ptr
->
ul_buffer_info
[
2
]
+
UE_template_ptr
->
ul_buffer_info
[
3
];
if
(
UE_template_ptr
->
estimated_ul_buffer
==
0
)
{
UE_template_ptr
->
scheduled_ul_bytes
=
0
;
}
//UE_template_ptr->estimated_ul_buffer += UE_template_ptr->estimated_ul_buffer / 4;
}
...
...
@@ -870,6 +875,9 @@ rx_sdu(const module_id_t enb_mod_idP,
UE_template_ptr
->
ul_buffer_info
[
1
]
+
UE_template_ptr
->
ul_buffer_info
[
2
]
+
UE_template_ptr
->
ul_buffer_info
[
3
];
if
(
UE_template_ptr
->
estimated_ul_buffer
==
0
)
{
UE_template_ptr
->
scheduled_ul_bytes
=
0
;
}
}
if
((
rx_lengths
[
i
]
<
SCH_PAYLOAD_SIZE_MAX
)
&&
(
rx_lengths
[
i
]
>
0
))
{
// MAX SIZE OF transport block
...
...
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