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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
c7ffd574
Commit
c7ffd574
authored
Nov 27, 2020
by
ChiehChun
Committed by
Robert Schmidt
Feb 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sched_ul_bytes/ulsch_current_bytes & Update in rx_sdu/schedule_ulsch
parent
4d0a2e48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+14
-1
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+3
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
c7ffd574
...
@@ -427,10 +427,21 @@ void nr_rx_sdu(const module_id_t gnb_mod_idP,
...
@@ -427,10 +427,21 @@ void nr_rx_sdu(const module_id_t gnb_mod_idP,
if
(
sduP
!=
NULL
){
if
(
sduP
!=
NULL
){
LOG_D
(
MAC
,
"Received PDU at MAC gNB
\n
"
);
LOG_D
(
MAC
,
"Received PDU at MAC gNB
\n
"
);
UE_scheduling_control
->
sched_ul_bytes
-=
UE_info
->
mac_stats
[
UE_id
].
ulsch_current_bytes
;
if
(
UE_scheduling_control
->
sched_ul_bytes
<
0
)
UE_scheduling_control
->
sched_ul_bytes
=
0
;
nr_process_mac_pdu
(
gnb_mod_idP
,
current_rnti
,
CC_idP
,
frameP
,
sduP
,
sdu_lenP
);
nr_process_mac_pdu
(
gnb_mod_idP
,
current_rnti
,
CC_idP
,
frameP
,
sduP
,
sdu_lenP
);
}
}
else
{
else
{
NR_UE_ul_harq_t
*
cur_harq
=
&
UE_scheduling_control
->
ul_harq_processes
[
harq_pid
];
/* reduce sched_ul_bytes when cur_harq->round == 3 */
if
(
cur_harq
->
round
==
3
){
UE_scheduling_control
->
sched_ul_bytes
-=
UE_info
->
mac_stats
[
UE_id
].
ulsch_current_bytes
;
if
(
UE_scheduling_control
->
sched_ul_bytes
<
0
)
UE_scheduling_control
->
sched_ul_bytes
=
0
;
}
}
}
}
else
{
}
else
{
if
(
!
sduP
)
// check that CRC passed
if
(
!
sduP
)
// check that CRC passed
...
@@ -692,6 +703,8 @@ void nr_schedule_ulsch(module_id_t module_id,
...
@@ -692,6 +703,8 @@ void nr_schedule_ulsch(module_id_t module_id,
cur_harq
->
round
,
cur_harq
->
round
,
cur_harq
->
ndi
);
cur_harq
->
ndi
);
}
}
UE_info
->
mac_stats
[
UE_id
].
ulsch_current_bytes
=
sched_pusch
->
tb_size
;
sched_ctrl
->
sched_ul_bytes
+=
sched_pusch
->
tb_size
;
LOG_D
(
MAC
,
LOG_D
(
MAC
,
"%4d.%2d RNTI %04x UL sched %4d.%2d start %d RBS %d MCS %d TBS %d HARQ PID %d round %d NDI %d
\n
"
,
"%4d.%2d RNTI %04x UL sched %4d.%2d start %d RBS %d MCS %d TBS %d HARQ PID %d round %d NDI %d
\n
"
,
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
c7ffd574
...
@@ -425,6 +425,8 @@ typedef struct {
...
@@ -425,6 +425,8 @@ typedef struct {
uint16_t
rbSize
;
uint16_t
rbSize
;
uint16_t
rbStart
;
uint16_t
rbStart
;
/// uplink bytes that are currently scheduled
int
sched_ul_bytes
;
/// estimation of the UL buffer size
/// estimation of the UL buffer size
int
estimated_ul_buffer
;
int
estimated_ul_buffer
;
...
@@ -483,6 +485,7 @@ typedef struct {
...
@@ -483,6 +485,7 @@ typedef struct {
int
ulsch_errors
;
int
ulsch_errors
;
int
ulsch_total_bytes_scheduled
;
int
ulsch_total_bytes_scheduled
;
int
ulsch_total_bytes_rx
;
int
ulsch_total_bytes_rx
;
int
ulsch_current_bytes
;
}
NR_mac_stats_t
;
}
NR_mac_stats_t
;
...
...
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