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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
0889d799
Commit
0889d799
authored
Apr 23, 2018
by
jftt_wangshanshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify CQI scheduling strategy
parent
c8267c2c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+6
-0
openair2/LAYER2/MAC/defs.h
openair2/LAYER2/MAC/defs.h
+1
-0
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+1
-0
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+2
-1
No files found.
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
0889d799
...
@@ -1447,6 +1447,12 @@ void pusch_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
...
@@ -1447,6 +1447,12 @@ void pusch_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
fill_ulsch_cqi_indication
(
eNB
,
frame
,
subframe
,
fill_ulsch_cqi_indication
(
eNB
,
frame
,
subframe
,
ulsch_harq
,
ulsch_harq
,
ulsch
->
rnti
);
ulsch
->
rnti
);
RC
.
mac
[
eNB
->
Mod_id
]
->
UE_list
.
UE_sched_ctrl
[
i
].
cqi_req_flag
=
0
;
}
else
{
if
(
RC
.
mac
[
eNB
->
Mod_id
]
->
UE_list
.
UE_sched_ctrl
[
i
].
cqi_req_flag
==
1
){
RC
.
mac
[
eNB
->
Mod_id
]
->
UE_list
.
UE_sched_ctrl
[
i
].
cqi_req_timer
=
30
;
LOG_I
(
PHY
,
"RM804 Frame %d,Subframe %d, We're supposed to get a cqi here. Set cqi_req_timer to 30.
\n
"
,
frame
,
subframe
);
}
}
}
if
(
ret
==
(
1
+
MAX_TURBO_ITERATIONS
))
{
if
(
ret
==
(
1
+
MAX_TURBO_ITERATIONS
))
{
...
...
openair2/LAYER2/MAC/defs.h
View file @
0889d799
...
@@ -864,6 +864,7 @@ typedef struct {
...
@@ -864,6 +864,7 @@ typedef struct {
uint8_t
dl_cqi
[
NFAPI_CC_MAX
];
uint8_t
dl_cqi
[
NFAPI_CC_MAX
];
int32_t
uplane_inactivity_timer
;
int32_t
uplane_inactivity_timer
;
uint8_t
crnti_reconfigurationcomplete_flag
;
uint8_t
crnti_reconfigurationcomplete_flag
;
uint8_t
cqi_req_flag
;
}
UE_sched_ctrl
;
}
UE_sched_ctrl
;
/*! \brief eNB template for the Random access information */
/*! \brief eNB template for the Random access information */
typedef
struct
{
typedef
struct
{
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
0889d799
...
@@ -4625,6 +4625,7 @@ cqi_indication(module_id_t mod_idP, int CC_idP, frame_t frameP,
...
@@ -4625,6 +4625,7 @@ cqi_indication(module_id_t mod_idP, int CC_idP, frame_t frameP,
extract_pusch_csi
(
mod_idP
,
CC_idP
,
UE_id
,
frameP
,
subframeP
,
extract_pusch_csi
(
mod_idP
,
CC_idP
,
UE_id
,
frameP
,
subframeP
,
pdu
,
rel9
->
length
);
pdu
,
rel9
->
length
);
LOG_I
(
MAC
,
"Frame %d Subframe %d update CQI:%d
\n
"
,
frameP
,
subframeP
,
sched_ctl
->
dl_cqi
);
}
}
// timing advance
// timing advance
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
0889d799
...
@@ -1837,6 +1837,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
...
@@ -1837,6 +1837,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
else
if
(
UE_sched_ctrl
->
cqi_req_timer
>
30
)
{
else
if
(
UE_sched_ctrl
->
cqi_req_timer
>
30
)
{
cqi_req
=
1
;
cqi_req
=
1
;
UE_sched_ctrl
->
cqi_req_timer
=
0
;
UE_sched_ctrl
->
cqi_req_timer
=
0
;
UE_sched_ctrl
->
cqi_req_flag
=
1
;
}
}
else
else
cqi_req
=
0
;
cqi_req
=
0
;
...
@@ -1894,7 +1895,6 @@ void schedule_ulsch_rnti(module_id_t module_idP,
...
@@ -1894,7 +1895,6 @@ void schedule_ulsch_rnti(module_id_t module_idP,
UE_template
->
mcs_UL
[
harq_pid
]
=
10
;
//cmin (10, openair_daq_vars.target_ue_ul_mcs);
UE_template
->
mcs_UL
[
harq_pid
]
=
10
;
//cmin (10, openair_daq_vars.target_ue_ul_mcs);
rb_table_index
=
5
;
// for PHR
rb_table_index
=
5
;
// for PHR
}
}
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
ulsch_mcs2
=
UE_template
->
mcs_UL
[
harq_pid
];
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
ulsch_mcs2
=
UE_template
->
mcs_UL
[
harq_pid
];
UE_template
->
TBS_UL
[
harq_pid
]
=
get_TBS_UL
(
UE_template
->
mcs_UL
[
harq_pid
],
rb_table
[
rb_table_index
]);
UE_template
->
TBS_UL
[
harq_pid
]
=
get_TBS_UL
(
UE_template
->
mcs_UL
[
harq_pid
],
rb_table
[
rb_table_index
]);
...
@@ -2071,6 +2071,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
...
@@ -2071,6 +2071,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
UE_template
->
TBS_UL
[
harq_pid
]
=
get_TBS_UL
(
UE_template
->
mcs_UL
[
harq_pid
],
ulsch_ue_select
[
CC_id
].
list
[
ulsch_ue_num
].
nb_rb
);
UE_template
->
TBS_UL
[
harq_pid
]
=
get_TBS_UL
(
UE_template
->
mcs_UL
[
harq_pid
],
ulsch_ue_select
[
CC_id
].
list
[
ulsch_ue_num
].
nb_rb
);
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
];
if
(
mac_eNB_get_rrc_status
(
module_idP
,
rnti
)
<
RRC_CONNECTED
)
if
(
mac_eNB_get_rrc_status
(
module_idP
,
rnti
)
<
RRC_CONNECTED
)
LOG_D
(
MAC
,
"[eNB %d][PUSCH %d/%x] CC_id %d Frame %d subframeP %d Scheduled UE %d (mcs %d, first rb %d, nb_rb %d, rb_table_index %d, TBS %d, harq_pid %d)
\n
"
,
LOG_D
(
MAC
,
"[eNB %d][PUSCH %d/%x] CC_id %d Frame %d subframeP %d Scheduled UE %d (mcs %d, first rb %d, nb_rb %d, rb_table_index %d, TBS %d, harq_pid %d)
\n
"
,
module_idP
,
harq_pid
,
rnti
,
CC_id
,
frameP
,
subframeP
,
UE_id
,
mcs_rv
,
first_rb
[
CC_id
],
rb_table
[
rb_table_index
],
rb_table_index
,
UE_template
->
TBS_UL
[
harq_pid
],
harq_pid
);
module_idP
,
harq_pid
,
rnti
,
CC_id
,
frameP
,
subframeP
,
UE_id
,
mcs_rv
,
first_rb
[
CC_id
],
rb_table
[
rb_table_index
],
rb_table_index
,
UE_template
->
TBS_UL
[
harq_pid
],
harq_pid
);
...
...
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