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
lizhongxiao
OpenXG-RAN
Commits
3544c35c
Commit
3544c35c
authored
Dec 13, 2023
by
Chieh-Chun Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: correct bytes_last_round to be the instantaneous transmission rate for each slice
parent
b5177eb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
openair2/LAYER2/NR_MAC_gNB/slicing/nr_slicing.c
openair2/LAYER2/NR_MAC_gNB/slicing/nr_slicing.c
+13
-17
No files found.
openair2/LAYER2/NR_MAC_gNB/slicing/nr_slicing.c
View file @
3544c35c
...
...
@@ -410,24 +410,20 @@ void nvs_nr_dl(module_id_t mod_id,
int
max_sched_ues
=
bw
/
(
average_agg_level
*
NR_NB_REG_PER_CCE
);
nr_slice_info_t
*
si
=
RC
.
nrmac
[
mod_id
]
->
pre_processor_dl
.
slices
;
int
bytes_last_round
=
0
;
int
bytes_last_round
[
MAX_NVS_SLICES
]
=
{
0
};
for
(
int
s_idx
=
0
;
s_idx
<
si
->
num
;
++
s_idx
)
{
UE_iterator
(
UE_info
->
list
,
UE
)
{
const
NR_UE_sched_ctrl_t
*
sched_ctrl
=
&
UE
->
UE_sched_ctrl
;
bytes_last_round
+=
UE
->
mac_stats
.
dl
.
current_bytes
;
int
s_idx
;
for
(
s_idx
=
0
;
s_idx
<
si
->
num
;
s_idx
++
)
{
if
(
si
->
s
[
s_idx
]
->
id
==
UE
->
dl_id
)
break
;
}
DevAssert
(
s_idx
>=
0
&&
s_idx
<
si
->
num
);
if
(
si
->
s
[
s_idx
]
->
id
==
UE
->
dl_id
)
{
bytes_last_round
[
s_idx
]
+=
UE
->
mac_stats
.
dl
.
current_bytes
;
/* if UE has data or retransmission, mark respective slice as active */
const
int
retx_pid
=
sched_ctrl
->
retrans_dl_harq
.
head
;
const
bool
active
=
sched_ctrl
->
num_total_bytes
>
0
||
retx_pid
>=
0
;
((
_nvs_int_t
*
)
si
->
s
[
s_idx
]
->
int_data
)
->
active
|=
active
;
}
}
}
float
maxw
=
0
.
0
f
;
int
maxidx
=
-
1
;
...
...
@@ -445,7 +441,7 @@ void nvs_nr_dl(module_id_t mod_id,
float
inst
=
0
.
0
f
;
if
(
ip
->
rb
>
0
)
{
/* it was scheduled last round */
/* inst rate: B in last round * 8(bit) / 1000000 (Mbps) * 1000 (1ms) */
inst
=
(
float
)
bytes_last_round
*
8
/
1000
;
inst
=
(
float
)
bytes_last_round
[
i
]
*
8
/
1000
;
ip
->
eff
=
(
1
.
0
f
-
ip
->
beta_eff
)
*
ip
->
eff
+
ip
->
beta_eff
*
inst
;
//LOG_W(NR_MAC, "i %d slice %d ip->rb %d inst %f ip->eff %f\n", i, s->id, ip->rb, inst, ip->eff);
ip
->
rb
=
0
;
...
...
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