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
spbro
OpenXG-RAN
Commits
4250f8ea
Commit
4250f8ea
authored
Feb 04, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ULSCH: remove CC loop, remove variables or limit scope
parent
1670b452
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
535 additions
and
537 deletions
+535
-537
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+525
-528
openair2/LAYER2/MAC/mac_proto.h
openair2/LAYER2/MAC/mac_proto.h
+5
-3
openair2/LAYER2/MAC/pre_processor.c
openair2/LAYER2/MAC/pre_processor.c
+5
-6
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
4250f8ea
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/mac_proto.h
View file @
4250f8ea
...
@@ -122,12 +122,12 @@ void schedule_ulsch(module_id_t module_idP, frame_t frameP,
...
@@ -122,12 +122,12 @@ void schedule_ulsch(module_id_t module_idP, frame_t frameP,
/** \brief ULSCH Scheduling per RNTI
/** \brief ULSCH Scheduling per RNTI
@param Mod_id Instance ID of eNB
@param Mod_id Instance ID of eNB
@param
slice_idx Slice instance index for this eNB
@param
CC_id The component carrier to schedule
@param frame Frame index
@param frame Frame index
@param subframe Subframe number on which to act
@param subframe Subframe number on which to act
@param sched_subframe Subframe number where PUSCH is transmitted (for DAI lookup)
@param sched_subframe Subframe number where PUSCH is transmitted (for DAI lookup)
*/
*/
void
schedule_ulsch_rnti
(
module_id_t
module_idP
,
int
slice_idx
,
frame_t
frameP
,
void
schedule_ulsch_rnti
(
module_id_t
module_idP
,
int
CC_id
,
frame_t
frameP
,
sub_frame_t
subframe
,
sub_frame_t
subframe
,
unsigned
char
sched_subframe
,
unsigned
char
sched_subframe
,
uint16_t
*
first_rb
);
uint16_t
*
first_rb
);
...
@@ -677,7 +677,9 @@ void set_ul_DAI(int module_idP,
...
@@ -677,7 +677,9 @@ void set_ul_DAI(int module_idP,
int
frameP
,
int
frameP
,
int
subframeP
);
int
subframeP
);
void
ulsch_scheduler_pre_processor
(
module_id_t
module_idP
,
int
slice_idx
,
int
frameP
,
void
ulsch_scheduler_pre_processor
(
module_id_t
module_idP
,
int
CC_id
,
int
frameP
,
sub_frame_t
subframeP
,
sub_frame_t
subframeP
,
int
sched_frameP
,
int
sched_frameP
,
unsigned
char
sched_subframeP
,
unsigned
char
sched_subframeP
,
...
...
openair2/LAYER2/MAC/pre_processor.c
View file @
4250f8ea
...
@@ -419,7 +419,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
...
@@ -419,7 +419,7 @@ dlsch_scheduler_pre_processor(module_id_t Mod_id,
/// ULSCH PRE_PROCESSOR
/// ULSCH PRE_PROCESSOR
void
ulsch_scheduler_pre_processor
(
module_id_t
module_idP
,
void
ulsch_scheduler_pre_processor
(
module_id_t
module_idP
,
int
slice_idx
,
int
CC_id
,
int
frameP
,
int
frameP
,
sub_frame_t
subframeP
,
sub_frame_t
subframeP
,
int
sched_frameP
,
int
sched_frameP
,
...
@@ -427,7 +427,7 @@ void ulsch_scheduler_pre_processor(module_id_t module_idP,
...
@@ -427,7 +427,7 @@ void ulsch_scheduler_pre_processor(module_id_t module_idP,
uint16_t
*
first_rb
)
{
uint16_t
*
first_rb
)
{
int
UE_id
;
int
UE_id
;
uint16_t
n
;
uint16_t
n
;
uint8_t
CC_id
,
harq_pid
;
uint8_t
harq_pid
;
uint16_t
nb_allocated_rbs
[
NFAPI_CC_MAX
][
MAX_MOBILES_PER_ENB
];
uint16_t
nb_allocated_rbs
[
NFAPI_CC_MAX
][
MAX_MOBILES_PER_ENB
];
uint16_t
total_allocated_rbs
[
NFAPI_CC_MAX
];
uint16_t
total_allocated_rbs
[
NFAPI_CC_MAX
];
uint16_t
average_rbs_per_user
[
NFAPI_CC_MAX
];
uint16_t
average_rbs_per_user
[
NFAPI_CC_MAX
];
...
@@ -436,6 +436,7 @@ void ulsch_scheduler_pre_processor(module_id_t module_idP,
...
@@ -436,6 +436,7 @@ void ulsch_scheduler_pre_processor(module_id_t module_idP,
eNB_MAC_INST
*
eNB
=
RC
.
mac
[
module_idP
];
eNB_MAC_INST
*
eNB
=
RC
.
mac
[
module_idP
];
UE_info_t
*
UE_info
=
&
eNB
->
UE_info
;
UE_info_t
*
UE_info
=
&
eNB
->
UE_info
;
slice_info_t
*
sli
=
&
eNB
->
slice_info
;
slice_info_t
*
sli
=
&
eNB
->
slice_info
;
const
int
slice_idx
=
0
;
UE_TEMPLATE
*
UE_template
=
0
;
UE_TEMPLATE
*
UE_template
=
0
;
UE_sched_ctrl_t
*
ue_sched_ctl
;
UE_sched_ctrl_t
*
ue_sched_ctl
;
int
N_RB_UL
=
0
;
int
N_RB_UL
=
0
;
...
@@ -498,8 +499,7 @@ void ulsch_scheduler_pre_processor(module_id_t module_idP,
...
@@ -498,8 +499,7 @@ void ulsch_scheduler_pre_processor(module_id_t module_idP,
ue_sched_ctl
->
max_rbs_allowed_slice_uplink
[
CC_id
][
slice_idx
]
=
ue_sched_ctl
->
max_rbs_allowed_slice_uplink
[
CC_id
][
slice_idx
]
=
nb_rbs_allowed_slice
(
sli
->
ul
[
slice_idx
].
pct
,
N_RB_UL
);
nb_rbs_allowed_slice
(
sli
->
ul
[
slice_idx
].
pct
,
N_RB_UL
);
first_rb_offset
=
UE_info
->
first_rb_offset
[
CC_id
][
slice_idx
];
first_rb_offset
=
UE_info
->
first_rb_offset
[
CC_id
][
slice_idx
];
available_rbs
=
available_rbs
=
N_RB_UL
-
2
*
first_rb
[
CC_id
];
// factor 2: top&bottom
cmin
(
ue_sched_ctl
->
max_rbs_allowed_slice_uplink
[
CC_id
][
slice_idx
],
N_RB_UL
-
first_rb
[
CC_id
]
-
first_rb_offset
);
if
(
available_rbs
<
0
)
if
(
available_rbs
<
0
)
available_rbs
=
0
;
available_rbs
=
0
;
...
@@ -668,8 +668,7 @@ assign_max_mcs_min_rb(module_id_t module_idP,
...
@@ -668,8 +668,7 @@ assign_max_mcs_min_rb(module_id_t module_idP,
}
}
first_rb_offset
=
UE_info
->
first_rb_offset
[
CC_id
][
slice_idx
];
first_rb_offset
=
UE_info
->
first_rb_offset
[
CC_id
][
slice_idx
];
available_rbs
=
available_rbs
=
N_RB_UL
-
2
*
first_rb
[
CC_id
];
cmin
(
ue_sched_ctl
->
max_rbs_allowed_slice_uplink
[
CC_id
][
slice_idx
],
N_RB_UL
-
first_rb
[
CC_id
]
-
first_rb_offset
);
while
(
tbs
<
bits_to_schedule
&&
while
(
tbs
<
bits_to_schedule
&&
rb_table
[
rb_table_index
]
<
available_rbs
&&
rb_table
[
rb_table_index
]
<
available_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