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
zzha zzha
OpenXG-RAN
Commits
51c49332
Commit
51c49332
authored
Mar 28, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MAC: count transported SDU bytes
parent
8d072754
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+1
-0
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+1
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
51c49332
...
...
@@ -1275,7 +1275,6 @@ void nr_schedule_ue_spec(module_id_t module_id,
header
->
LCID
=
DL_SCH_LCID_PADDING
;
buf
+=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
header
->
L
=
htons
(
bufEnd
-
buf
);
dlsch_total_bytes
+=
bufEnd
-
buf
;
for
(;
((
intptr_t
)
buf
)
%
4
;
buf
++
)
*
buf
=
lrand48
()
&
0xff
;
...
...
@@ -1306,6 +1305,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
UE
->
mac_stats
.
dl
.
total_rbs
+=
sched_pdsch
->
rbSize
;
UE
->
mac_stats
.
dl
.
num_mac_sdu
+=
sdus
;
UE
->
mac_stats
.
dl
.
current_rbs
=
sched_pdsch
->
rbSize
;
UE
->
mac_stats
.
dl
.
total_sdu_bytes
+=
dlsch_total_bytes
;
/* save retransmission information */
harq
->
sched_pdsch
=
*
sched_pdsch
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
51c49332
...
...
@@ -325,6 +325,7 @@ int nr_process_mac_pdu(instance_t module_idP,
if
(
UE_idx
->
CellGroup
)
{
LOG_D
(
NR_MAC
,
"Frame %d : ULSCH -> UL-DCCH %d (gNB %ld, %d bytes), rnti: 0x%04x
\n
"
,
frameP
,
rx_lcid
,
module_idP
,
mac_len
,
crnti
);
UE
->
mac_stats
.
ul
.
total_sdu_bytes
+=
mac_len
;
mac_rlc_data_ind
(
module_idP
,
crnti
,
module_idP
,
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
51c49332
...
...
@@ -614,6 +614,7 @@ typedef struct NR_mac_dir_stats {
uint64_t
errors
;
uint64_t
total_bytes
;
uint32_t
current_bytes
;
uint64_t
total_sdu_bytes
;
uint32_t
total_rbs
;
uint32_t
total_rbs_retx
;
uint32_t
num_mac_sdu
;
...
...
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