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
alex037yang
OpenXG-RAN
Commits
910b0254
Commit
910b0254
authored
Feb 13, 2018
by
shahab SHARIAT BAGHERI
Committed by
Robert Schmidt
Feb 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Total Uplink TBS to eNB_UE_stats
parent
c0aea423
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
+3
-3
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+1
-1
openair2/LAYER2/MAC/defs.h
openair2/LAYER2/MAC/defs.h
+2
-0
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+1
-0
No files found.
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
View file @
910b0254
...
@@ -549,9 +549,9 @@ int flexran_agent_mac_stats_reply(mid_t mod_id,
...
@@ -549,9 +549,9 @@ int flexran_agent_mac_stats_reply(mid_t mod_id,
monapp
->
has_total_tbs_dl
=
1
;
monapp
->
has_total_tbs_dl
=
1
;
monapp
->
total_tbs_ul
=
flexran_get_total_TBS_ul
(
mod_id
,
i
,
cc_id
);
monapp
->
total_tbs_ul
=
flexran_get_total_TBS_ul
(
mod_id
,
i
,
cc_id
);
monapp
->
has_total_tbs_
d
l
=
1
;
monapp
->
has_total_tbs_
u
l
=
1
;
Protocol__FlexMacSdusDl
**
mac_sdus
;
Protocol__FlexMacSdusDl
**
mac_sdus
;
mac_sdus
=
malloc
(
sizeof
(
Protocol__FlexMacSdusDl
)
*
flexran_get_num_mac_sdu_tx
(
mod_id
,
i
,
cc_id
));
mac_sdus
=
malloc
(
sizeof
(
Protocol__FlexMacSdusDl
)
*
flexran_get_num_mac_sdu_tx
(
mod_id
,
i
,
cc_id
));
if
(
mac_sdus
==
NULL
)
if
(
mac_sdus
==
NULL
)
goto
error
;
goto
error
;
...
...
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
910b0254
...
@@ -325,7 +325,7 @@ uint64_t flexran_get_total_TBS_dl(mid_t mod_id, mid_t ue_id, int cc_id){
...
@@ -325,7 +325,7 @@ uint64_t flexran_get_total_TBS_dl(mid_t mod_id, mid_t ue_id, int cc_id){
uint64_t
flexran_get_total_TBS_ul
(
mid_t
mod_id
,
mid_t
ue_id
,
int
cc_id
){
uint64_t
flexran_get_total_TBS_ul
(
mid_t
mod_id
,
mid_t
ue_id
,
int
cc_id
){
if
(
!
mac_is_present
(
mod_id
))
return
0
;
if
(
!
mac_is_present
(
mod_id
))
return
0
;
return
/*TODO for uplink*/
0
;
//UE_list->eNB_UE_stats[CC_id][UE_id].total_pdu_bytes
;
return
RC
.
mac
[
mod_id
]
->
UE_list
.
eNB_UE_stats
[
cc_id
][
ue_id
].
total_ulsch_TBS
;
}
}
uint8_t
flexran_get_mcs1_dl
(
mid_t
mod_id
,
mid_t
ue_id
,
int
cc_id
){
uint8_t
flexran_get_mcs1_dl
(
mid_t
mod_id
,
mid_t
ue_id
,
int
cc_id
){
...
...
openair2/LAYER2/MAC/defs.h
View file @
910b0254
...
@@ -615,6 +615,8 @@ typedef struct {
...
@@ -615,6 +615,8 @@ typedef struct {
/// uplink transport block size
/// uplink transport block size
uint32_t
ulsch_TBS
;
uint32_t
ulsch_TBS
;
uint32_t
total_ulsch_TBS
;
/// total rb used for a new uplink transmission
/// total rb used for a new uplink transmission
uint32_t
num_retransmission_rx
;
uint32_t
num_retransmission_rx
;
/// total rb used for a new uplink transmission
/// total rb used for a new uplink transmission
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
910b0254
...
@@ -1315,6 +1315,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
...
@@ -1315,6 +1315,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
rb_table
[
rb_table_index
]);
rb_table
[
rb_table_index
]);
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
total_rbs_used_rx
+=
rb_table
[
rb_table_index
];
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
total_rbs_used_rx
+=
rb_table
[
rb_table_index
];
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
ulsch_TBS
=
UE_template
->
TBS_UL
[
harq_pid
];
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
ulsch_TBS
=
UE_template
->
TBS_UL
[
harq_pid
];
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
total_ulsch_TBS
+=
UE_template
->
TBS_UL
[
harq_pid
];
// buffer_occupancy -= TBS;
// buffer_occupancy -= TBS;
T
(
T_ENB_MAC_UE_UL_SCHEDULE
,
T_INT
(
module_idP
),
T
(
T_ENB_MAC_UE_UL_SCHEDULE
,
T_INT
(
module_idP
),
...
...
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