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
promise
OpenXG-RAN
Commits
1372e022
Commit
1372e022
authored
Apr 05, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for CCE allocation in UL PP
parent
36ebfe04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+1
-1
openair2/LAYER2/MAC/mac.h
openair2/LAYER2/MAC/mac.h
+3
-0
openair2/LAYER2/MAC/pre_processor.c
openair2/LAYER2/MAC/pre_processor.c
+18
-3
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
1372e022
...
@@ -1353,7 +1353,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
...
@@ -1353,7 +1353,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
if
(
UE_template_ptr
->
pre_allocated_nb_rb_ul
<
1
)
if
(
UE_template_ptr
->
pre_allocated_nb_rb_ul
<
1
)
continue
;
continue
;
int
dci_ul_pdu_idx
=
-
1
;
int
dci_ul_pdu_idx
=
UE_template_ptr
->
pre_dci_ul_pdu_idx
;
if
(
dci_ul_pdu_idx
<
0
)
{
if
(
dci_ul_pdu_idx
<
0
)
{
dci_ul_pdu_idx
=
CCE_try_allocate_ulsch
(
dci_ul_pdu_idx
=
CCE_try_allocate_ulsch
(
module_idP
,
CC_id
,
subframeP
,
UE_id
,
UE_sched_ctrl_ptr
->
dl_cqi
[
CC_id
]);
module_idP
,
CC_id
,
subframeP
,
UE_id
,
UE_sched_ctrl_ptr
->
dl_cqi
[
CC_id
]);
...
...
openair2/LAYER2/MAC/mac.h
View file @
1372e022
...
@@ -831,6 +831,9 @@ typedef struct {
...
@@ -831,6 +831,9 @@ typedef struct {
/// index of Allocated RBs by the ulsch preprocessor
/// index of Allocated RBs by the ulsch preprocessor
int8_t
pre_allocated_rb_table_index_ul
;
int8_t
pre_allocated_rb_table_index_ul
;
/// index of allocated HI_DCI0
int
pre_dci_ul_pdu_idx
;
/// total allocated RBs
/// total allocated RBs
int8_t
total_allocated_rbs
;
int8_t
total_allocated_rbs
;
...
...
openair2/LAYER2/MAC/pre_processor.c
View file @
1372e022
...
@@ -509,6 +509,11 @@ int round_robin_ul(module_id_t Mod_id,
...
@@ -509,6 +509,11 @@ int round_robin_ul(module_id_t Mod_id,
UE_info
->
UE_sched_ctrl
[
UE_id
].
round_UL
[
CC_id
][
harq_pid
]);
UE_info
->
UE_sched_ctrl
[
UE_id
].
round_UL
[
CC_id
][
harq_pid
]);
continue
;
continue
;
}
}
const
uint8_t
cqi
=
UE_info
->
UE_sched_ctrl
[
UE_id
].
dl_cqi
[
CC_id
];
const
int
idx
=
CCE_try_allocate_ulsch
(
Mod_id
,
CC_id
,
subframe
,
UE_id
,
cqi
);
if
(
idx
<
0
)
continue
;
// cannot allocate CCE
UE_template
->
pre_dci_ul_pdu_idx
=
idx
;
if
(
rbs
[
0
].
length
>=
nb_rb
)
{
// fits in first contiguous region
if
(
rbs
[
0
].
length
>=
nb_rb
)
{
// fits in first contiguous region
UE_template
->
pre_first_nb_rb_ul
=
rbs
[
0
].
start
;
UE_template
->
pre_first_nb_rb_ul
=
rbs
[
0
].
start
;
rbs
[
0
].
length
-=
nb_rb
;
rbs
[
0
].
length
-=
nb_rb
;
...
@@ -531,6 +536,8 @@ int round_robin_ul(module_id_t Mod_id,
...
@@ -531,6 +536,8 @@ int round_robin_ul(module_id_t Mod_id,
"cannot allocate UL retransmission for UE %d (nb_rb %d)
\n
"
,
"cannot allocate UL retransmission for UE %d (nb_rb %d)
\n
"
,
UE_id
,
UE_id
,
nb_rb
);
nb_rb
);
UE_template
->
pre_dci_ul_pdu_idx
=
-
1
;
// do not need CCE
RC
.
mac
[
Mod_id
]
->
HI_DCI0_req
[
CC_id
][
subframe
].
hi_dci0_request_body
.
number_of_dci
--
;
continue
;
continue
;
}
}
LOG_D
(
MAC
,
"%4d.%d UE %d retx %d RBs at start %d
\n
"
,
LOG_D
(
MAC
,
"%4d.%d UE %d retx %d RBs at start %d
\n
"
,
...
@@ -640,8 +647,15 @@ int round_robin_ul(module_id_t Mod_id,
...
@@ -640,8 +647,15 @@ int round_robin_ul(module_id_t Mod_id,
while
(
num_ue_sched
<
nr
[
r
])
{
while
(
num_ue_sched
<
nr
[
r
])
{
while
(
rb_idx_required
[
sUE_id
]
==
0
)
while
(
rb_idx_required
[
sUE_id
]
==
0
)
sUE_id
=
next_ue_list_looped
(
UE_list
,
sUE_id
);
sUE_id
=
next_ue_list_looped
(
UE_list
,
sUE_id
);
/* TODO: check that CCE allocated is feasible. If it is not, reduce
const
int
cqi
=
UE_info
->
UE_sched_ctrl
[
sUE_id
].
dl_cqi
[
CC_id
];
* nr[r] by one as this would been one opportunity */
const
int
idx
=
CCE_try_allocate_ulsch
(
Mod_id
,
CC_id
,
subframe
,
sUE_id
,
cqi
);
if
(
idx
<
0
)
{
LOG_D
(
MAC
,
"cannot allocate CCE for UE %d, skipping
\n
"
,
sUE_id
);
nr
[
r
]
--
;
sUE_id
=
next_ue_list_looped
(
UE_list
,
sUE_id
);
// next candidate
continue
;
}
UE_info
->
UE_template
[
CC_id
][
sUE_id
].
pre_dci_ul_pdu_idx
=
idx
;
*
cur_UE
=
sUE_id
;
*
cur_UE
=
sUE_id
;
cur_UE
=
&
UE_sched
.
next
[
sUE_id
];
cur_UE
=
&
UE_sched
.
next
[
sUE_id
];
rb_idx_given
[
sUE_id
]
=
min
(
start_idx
,
rb_idx_required
[
sUE_id
]);
rb_idx_given
[
sUE_id
]
=
min
(
start_idx
,
rb_idx_required
[
sUE_id
]);
...
@@ -729,6 +743,7 @@ void ulsch_scheduler_pre_processor(module_id_t Mod_id,
...
@@ -729,6 +743,7 @@ void ulsch_scheduler_pre_processor(module_id_t Mod_id,
UE_template
->
pre_allocated_nb_rb_ul
=
0
;
UE_template
->
pre_allocated_nb_rb_ul
=
0
;
UE_template
->
pre_allocated_rb_table_index_ul
=
-
1
;
UE_template
->
pre_allocated_rb_table_index_ul
=
-
1
;
UE_template
->
pre_first_nb_rb_ul
=
0
;
UE_template
->
pre_first_nb_rb_ul
=
0
;
UE_template
->
pre_dci_ul_pdu_idx
=
-
1
;
const
rnti_t
rnti
=
UE_RNTI
(
Mod_id
,
UE_id
);
const
rnti_t
rnti
=
UE_RNTI
(
Mod_id
,
UE_id
);
if
(
rnti
==
NOT_A_RNTI
)
{
if
(
rnti
==
NOT_A_RNTI
)
{
...
@@ -775,7 +790,7 @@ void ulsch_scheduler_pre_processor(module_id_t Mod_id,
...
@@ -775,7 +790,7 @@ void ulsch_scheduler_pre_processor(module_id_t Mod_id,
sched_frameP
,
sched_frameP
,
sched_subframeP
,
sched_subframeP
,
&
UE_to_sched
,
&
UE_to_sched
,
3
,
// max_num_ue
4
,
// max_num_ue
n_contig
,
n_contig
,
rbs
);
rbs
);
...
...
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